QAbstractObjectRegistryRef Class
La clase `QAbstractObjectRegistryRef` es una clase base para todas las clases de referencia de objetos de soporte de diseño de ` Qt Qml `. Más información...
| Encabezado: | #include <QAbstractObjectRegistryRef> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlDesignSupport) target_link_libraries(mytarget PRIVATE Qt6::QmlDesignSupport) |
| qmake: | QT += qmldesignsupport |
| Desde: | Qt 6.12 |
| En QML: | AbstractObjectRegistryRef |
| Heredado de: | QObject |
| Heredado por: |
- Lista de todos los miembros, incluidos los heredados
- QAbstractObjectRegistryRef forma parte de las clases de C++ de soporte al diseño de «Qt Qml ».
Propiedades
- key : QString
Funciones públicas
Señales
| void | keyChanged(const QString &key) |
Funciones protegidas reimplementadas
| virtual bool | event(QEvent *event) override |
Descripción detallada
Esta clase no se puede instanciar por sí sola; debes utilizar una de las siguientes clases derivadas: ` QObjectRegistryRef ` o QMultiObjectRegistryRef
Si se registran varios objetos con la misma clave, utiliza la clase derivada QMultiObjectRegistryRef. Normalmente, esto ocurre cuando se registran objetos delegados instanciados por modelos. Si sabes que la clave se utiliza para registrar un único objeto, se recomienda utilizar la clase derivada QObjectRegistryRef.
Documentación de la propiedad
key : QString
Esta propiedad contiene la clave del objeto registrado al que hace referencia esta referencia.
Funciones de acceso:
| QString | key() const |
| void | setKey(const QString &key) |
Señal de notificador:
| void | keyChanged(const QString &key) |
Véase también ObjectRegistry.
Documentación de funciones de miembro
[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.