QVariantConstPointer Class
포인터를 기반으로 QVariant 에뮬레이트된 const 포인터. 더 보기...
헤더: | #include <QVariantConstPointer> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
이후: | Qt 6.0 |
공용 함수
QVariantConstPointer(QVariant variant) | |
QVariant | operator*() const |
const QVariant * | operator->() const |
자세한 설명
QVariantConstPointer는 QVariant 를 래핑하여 그 연산자*()로부터 반환합니다. 따라서 실제 생성 포인터를 대체하는 데 적합합니다. 일반 이터레이터는 실제 QVariant 를 보유하지 않으므로 일반 이터레이터에서 실제 const 포인터를 반환할 수 없습니다.
멤버 함수 문서
[explicit]
QVariantConstPointer::QVariantConstPointer(QVariant variant)
variant 에서 QVariantConstPointer를 생성합니다.
QVariant QVariantConstPointer::operator*() const
QVariantConstPointer 을 참조하여 내부 QVariant 을 검색합니다.
const QVariant *QVariantConstPointer::operator->() const
연산자->() 규칙을 준수하는 QVariant 에 대한 정적 포인터를 반환합니다.
© 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.