QQmlSA::Property Class
class QQmlSA::Property表示一个 QML 属性。更多...
| 标题: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| 状态: | 技术预览 |
该类处于技术预览阶段,内容可能会有变动。
公共函数
| Property() | |
| Property(const QQmlSA::Property &other) | |
| Property(QQmlSA::Property &&other) | |
| ~Property() | |
| bool | isReadonly() const |
| bool | isValid() const |
| QQmlSA::Element | type() const |
| QString | typeName() const |
| QQmlSA::Property & | operator=(QQmlSA::Property &&other) |
| QQmlSA::Property & | operator=(const QQmlSA::Property &other) |
相关的非成员
| bool | operator!=(const QQmlSA::Property &lhs, const QQmlSA::Property &rhs) |
| bool | operator==(const QQmlSA::Property &lhs, const QQmlSA::Property &rhs) |
成员函数文档
Property::Property()
创建一个新的 Property 对象。
Property::Property(const QQmlSA::Property &other)
创建other 的副本。
[noexcept] Property::Property(QQmlSA::Property &&other)
通过“Move”构造一个 Property 实例。
[noexcept] Property::~Property()
删除此属性。
bool Property::isReadonly() const
如果该属性为只读,则返回true ;否则返回false 。
bool Property::isValid() const
如果该属性有效,则返回true ;否则返回false 。
QQmlSA::Element Property::type() const
返回此属性的类型。
QString Property::typeName() const
返回此属性的类型名称。
[noexcept] QQmlSA::Property &Property::operator=(QQmlSA::Property &&other)
将 `other ` 赋值给此 Property 实例。
QQmlSA::Property &Property::operator=(const QQmlSA::Property &other)
将other 赋值给此 Property 实例。
相关的非成员属性
bool operator!=(const QQmlSA::Property &lhs, const QQmlSA::Property &rhs)
如果 `lhs ` 和 `rhs ` 不相等,则返回 `true `;否则返回 `false `。
bool operator==(const QQmlSA::Property &lhs, const QQmlSA::Property &rhs)
如果lhs 和rhs 相等,则返回true ;否则返回false 。
© 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.