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 をラップし、operator*() から返します。このため、実際の定数ポインタの代わりとして適しています。イテレータは実際のQVariant を保持しないため、ジェネリック・イテレータから実際の const ポインタを返すことはできません。

メンバ関数ドキュメント

[explicit] QVariantConstPointer::QVariantConstPointer(QVariant variant)

variant から QVariantConstPointer を構築します。

QVariant QVariantConstPointer::operator*() const

QVariantConstPointer を再参照し、その内部QVariant を取得する。

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

operator->() の規約に従った、QVariant への 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.