QVariantPointer Class
template <typename Pointer> class QVariantPointerQVariantPointer는 포인터를 기반으로 QVariant 에 대한 포인터를 에뮬레이트하는 템플릿 클래스입니다. 더 보기...
헤더: | #include <QVariantPointer> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
이후: | Qt 6.0 |
공용 함수
QVariantPointer(const Pointer *pointer) | |
QVariantRef<Pointer> | operator*() const |
Pointer | operator->() const |
자세한 설명
QVariantConstPointer 는 포인터를 감싸고 그 연산자*()로부터 QVariantRef 를 반환합니다. 따라서 실제 포인터를 대체하는 데 적합합니다. 일반 이터레이터는 실제 QVariant 를 보유하지 않으므로 일반 이터레이터에서 실제 포인터를 반환할 수 없습니다.
멤버 함수 문서
[explicit]
QVariantPointer::QVariantPointer(const Pointer *pointer)
주어진 pointer 로부터 QVariantPointer를 구축합니다.
QVariantRef<Pointer> QVariantPointer::operator*() const
QVariantPointer 을 QVariantRef 으로 참조 변경합니다.
Pointer QVariantPointer::operator->() const
포인터를 역참조하고 반환합니다. 포인터는 연산자->()도 구현할 것으로 예상됩니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.