En esta página

AbstractObjectRegistryRef QML Type (Uncreatable)

Tipo base para todos los tipos de referencia de objetos de « Qt Qml » Design Support. Más información...

Import Statement: import QtQml.DesignSupport
Since: Qt 6.12
In C++: QAbstractObjectRegistryRef
Inherited By:

MultiObjectRegistryRef and ObjectRegistryRef

Nota: Este es un tipo que no se puede crear. No se puede instanciar en QML.

Propiedades

Descripción detallada

Este tipo no se puede instanciar directamente. En su lugar, utiliza uno de los siguientes tipos derivados: ObjectRegistryRef o MultiObjectRegistryRef.

Si se registran varios objetos con la misma clave, utilice el tipo derivado MultiObjectRegistryRef. Normalmente, esto ocurre cuando se registran objetos delegados instanciados por modelos. Si sabe que la clave se utiliza para registrar un único objeto, se recomienda utilizar el tipo derivado ObjectRegistryRef.

Documentación de propiedades

key : string

Esta propiedad especifica la clave del objeto registrado al que hace referencia esta referencia.

Véase también ObjectRegistry.

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