QQmlSA::Property Class
class QQmlSA::Property代表 QML 属性。更多
头文件: | #include <Property> |
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(const QQmlSA::Property &other)
创建other 的副本。
[noexcept]
Property::Property(QQmlSA::Property &&other)
移动-构建一个属性实例。
[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 指定给此属性实例。
QQmlSA::Property &Property::operator=(const QQmlSA::Property &other)
为该属性实例指定other 。
相关非成员
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
。
© 2025 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.