In questa pagina

AbstractObjectRegistryRef QML Type (Uncreatable)

Tipo di base per tutti i tipi di riferimento agli oggetti di Design Support di Qt Qml. Altro...

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

MultiObjectRegistryRef and ObjectRegistryRef

Nota: si tratta di un tipo non creabile. Non può essere istanziato in QML.

Proprietà

Descrizione dettagliata

Questo tipo non può essere istanziato direttamente. Utilizzare invece uno dei seguenti tipi derivati: ObjectRegistryRef o MultiObjectRegistryRef.

Se più oggetti sono registrati con la stessa chiave, utilizzare il tipo derivato MultiObjectRegistryRef. In genere ciò accade quando vengono registrati oggetti delegati istanziati dai modelli. Se si sa che la chiave viene utilizzata per registrare un solo oggetto, si consiglia di utilizzare il tipo derivato ObjectRegistryRef.

Documentazione delle proprietà

key : string

Questa proprietà specifica la chiave dell'oggetto registrato a cui fa riferimento questo riferimento.

Vedi anche 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.