本页内容

qmlProperty QML Value Type

指对象某个属性的值。更多...

Import Statement: import QtQml
Since: Qt 6.12
In C++: QQmlProperty

属性

详细说明

qmlProperty 类型指特定对象实例的一个属性。

qmlProperty 类型的不合法值具有null object ,且其name 为空。

qmlProperty 这些值无法通过 QML 构造,但可以从 C++ 传递过来。

另请参阅 QML 值类型。

属性文档

name : string [read-only]

此只读属性存储被引用的属性的名称。

object : QtObject [read-only]

此只读属性保存被引用的属性的对象。

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