AbstractObjectRegistryRef QML Type

Base type for all Qt Qml Design Support object reference types. More...

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

MultiObjectRegistryRef and ObjectRegistryRef

Properties

Detailed Description

This type cannot be instantiated directly. Instead, use one of the following derived types: ObjectRegistryRef or MultiObjectRegistryRef.

If multiple objects are registered with the same key, use the derived type MultiObjectRegistryRef. Typically this happens when delegate objects instantiated by models are registered. If you know the key is used to register only a single object, using the derived type ObjectRegistryRef is recommended.

Property Documentation

key : string

This property specifies the key of the registered object that this reference refers to.

See also ObjectRegistry.