QAbstractObjectRegistryRef Class
QAbstractObjectRegistryRef クラスは、Qt Qml のすべてのデザインサポート用オブジェクト参照クラスの基底クラスです。詳細...
| ヘッダー: | #include <QAbstractObjectRegistryRef> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlDesignSupport) target_link_libraries(mytarget PRIVATE Qt6::QmlDesignSupport) |
| qmake: | QT += qmldesignsupport |
| 以下のように: | Qt 6.12 |
| QML における: | AbstractObjectRegistryRef |
| 継承元: | QObject |
| 継承元: |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QAbstractObjectRegistryRefは、Qt Qml の設計支援用C++クラスの一部です。
プロパティ
- key : QString
パブリック関数
シグナル
| void | keyChanged(const QString &key) |
再実装された保護関数
| virtual bool | event(QEvent *event) override |
詳細な説明
このクラスは単独ではインスタンス化できません。以下の派生クラスのいずれかを使用する必要があります:QObjectRegistryRef またはQMultiObjectRegistryRef
同じキーで複数のオブジェクトが登録されている場合は、派生クラス `QMultiObjectRegistryRef` を使用してください。これは通常、モデルによってインスタンス化されたデリゲート・オブジェクトが登録される際に発生します。そのキーが単一のオブジェクトのみを登録するために使用されることが分かっている場合は、派生クラス `QObjectRegistryRef ` を使用することを推奨します。
プロパティのドキュメント
key : QString
このプロパティは、この参照が指す登録済みオブジェクトのキーを保持します。
アクセス関数:
| QString | key() const |
| void | setKey(const QString &key) |
通知シグナル:
| void | keyChanged(const QString &key) |
関連項目: ObjectRegistry 。
メンバ関数のドキュメント
[override virtual protected] bool QAbstractObjectRegistryRef::event(QEvent *event)
QObject::event(QEvent *e) を再実装します。
© 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.