AbstractObjectRegistryRef QML Type (Uncreatable)
所有Qt Qml 设计支持对象引用类型的基类。更多...
| Import Statement: | import QtQml.DesignSupport |
| Since: | Qt 6.12 |
| In C++: | QAbstractObjectRegistryRef |
| Inherited By: |
注意:此类型不可创建。无法在 QML 中对其进行实例化。
- 所有成员列表(包括继承的成员)
- AbstractObjectRegistryRef 属于Qt Qml 设计支持 QML 类型。
属性
- key : string
详细说明
此类型无法直接实例化。请改用以下派生类型之一:ObjectRegistryRef 或MultiObjectRegistryRef 。
如果使用同一键注册了多个对象,请使用派生类型MultiObjectRegistryRef 。通常,这种情况发生在注册由模型实例化的委托对象时。如果您确定该键仅用于注册单个对象,则建议使用派生类型ObjectRegistryRef 。
属性文档
key : string
此属性指定了该引用所指向的已注册对象的键。
另请参阅 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.