QVariantPointer Class

template <typename Pointer> class QVariantPointer

QVariantPointer は、ポインタを元に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 ポインタをラップし、operator*() から を返します。そのため、実際のポインタの代わりとして適しています。汎用イテレータは実際のポインタ を保持しないため、汎用イテレータから実際のポインタを返すことはできません。QVariantRef QVariant

メンバ関数ドキュメント

[explicit] QVariantPointer::QVariantPointer(const Pointer *pointer)

与えられたpointer から QVariantPointer を構築します。

QVariantRef<Pointer> QVariantPointer::operator*() const

QVariantRef へのQVariantPointer の参照を解除する。

Pointer QVariantPointer::operator->() const

ポインタを参照解除して返す。ポインタは operator->() も実装していることが期待される。

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