QAbstractObjectRegistryRef Class
La classe `QAbstractObjectRegistryRef` è una classe base per tutte le classi di riferimento agli oggetti del Design Support di ` Qt Qml `. Per saperne di più...
| Intestazione: | #include <QAbstractObjectRegistryRef> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlDesignSupport) target_link_libraries(mytarget PRIVATE Qt6::QmlDesignSupport) |
| qmake: | QT += qmldesignsupport |
| A partire da: | Qt 6.12 |
| In QML: | AbstractObjectRegistryRef |
| Eredita da: | QObject |
| Ereditato da: |
- Elenco di tutti i membri, compresi quelli ereditati
- QAbstractObjectRegistryRef fa parte delle classi C++ di supporto alla progettazionQt Qml .
Proprietà
- key : QString
Funzioni pubbliche
Segnali
| void | keyChanged(const QString &key) |
Funzioni protette reimplementate
| virtual bool | event(QEvent *event) override |
Descrizione dettagliata
Questa classe non può essere istanziata autonomamente; è necessario utilizzare una delle seguenti classi derivate: QObjectRegistryRef oppure QMultiObjectRegistryRef
Se più oggetti sono registrati con la stessa chiave, utilizzare la classe derivata QMultiObjectRegistryRef. In genere ciò accade quando vengono registrati oggetti delegati istanziati dai modelli. Se si è certi che la chiave venga utilizzata per registrare un solo oggetto, si consiglia di utilizzare la classe derivata QObjectRegistryRef.
Documentazione delle proprietà
key : QString
Questa proprietà contiene la chiave dell'oggetto registrato a cui fa riferimento questo riferimento.
Funzioni di accesso:
| QString | key() const |
| void | setKey(const QString &key) |
Segnale di notifica:
| void | keyChanged(const QString &key) |
Vedi anche ObjectRegistry.
Documentazione delle funzioni membro
[override virtual protected] bool QAbstractObjectRegistryRef::event(QEvent *event)
Reimplementa: 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.