QVariantConstPointer Class
포인터를 기반으로 QVariant 에 대한 const 포인터를 에뮬레이션합니다. 더 보기...
| 헤더: | #include <qvariant.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
| 다음부터: | Qt 6.0 |
| 상태: | 6.15까지 |
이 클래스는 버전 6.15에서 사용 중단될 예정입니다.
공개 함수
| QVariantConstPointer(QVariant variant) | |
| QVariant | operator*() const |
| const QVariant * | operator->() const |
상세 설명
대신 ` QVariant::ConstPointer `를 사용하십시오.
QVariantConstPointer는 QVariant 를 래핑하여 operator*()를 통해 반환합니다. 따라서 실제 const 포인터를 대체하는 데 적합합니다. 제네릭 반복자는 실제 QVariant 를 보유하지 않으므로, 제네릭 반복자에서는 실제 const 포인터를 반환할 수 없습니다.
멤버 함수 문서
[explicit] QVariantConstPointer::QVariantConstPointer(QVariant variant)
variant 에서 QVariantConstPointer를 생성합니다.
QVariant QVariantConstPointer::operator*() const
QVariantConstPointer 의 참조를 해제하여 그 내부 값인 QVariant 을 가져옵니다.
const QVariant *QVariantConstPointer::operator->() const
QVariant 에 대한 const 포인터를 반환하며, operator->()에 대한 규약을 따릅니다.
© 2026 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.