이 페이지에서

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
상태: 6.15까지

이 클래스는 버전 6.15에서 폐지될 예정입니다.

공용 함수

QVariantConstPointer(QVariant variant)
QVariant operator*() const
const QVariant *operator->() const

자세한 설명

대신 QVariant::ConstPointer 을 사용하십시오.

QVariantConstPointer는 QVariant 를 래핑하고 그 연산자*()로부터 반환합니다. 따라서 실제 생성 포인터를 대체하는 데 적합합니다. 일반 이터레이터는 실제 QVariant 를 보유하지 않으므로 일반 이터레이터에서 실제 const 포인터를 반환할 수 없습니다.

멤버 함수 문서

[explicit] QVariantConstPointer::QVariantConstPointer(QVariant variant)

variant 에서 QVariantConstPointer를 생성합니다.

QVariant QVariantConstPointer::operator*() const

QVariantConstPointer 을 참조하여 내부 QVariant 을 검색합니다.

const QVariant *QVariantConstPointer::operator->() const

연산자->() 규칙을 준수하는 QVariant 에 대한 정적 포인터를 반환합니다.

© 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.