Property Class

class QQmlSA ::Property

Represents a QML property. 更多...

头: #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:: 特性 ()

Constructs a new Property object.

Property:: 特性 (const QQmlSA::Property & other )

创建副本为 other .

[noexcept] Property:: 特性 ( QQmlSA::Property && other )

Move-constructs a Property instance.

[noexcept] Property:: ~Property ()

Destroys this property.

bool Property:: isReadonly () const

返回 true if this property is read-only, false 否则。

bool Property:: isValid () const

返回 true if this property is valid, false 否则。

QQmlSA::Element Property:: type () const

Returns the type of this property.

QString Property:: typeName () const

Returns the name of the type of this property.

[noexcept] QQmlSA::Property &Property:: operator= ( QQmlSA::Property && other )

移动赋值 other to this Property instance.

QQmlSA::Property &Property:: operator= (const QQmlSA::Property & other )

赋值 other to this Property instance.

相关非成员

bool operator!= (const QQmlSA::Property & lhs , const QQmlSA::Property & rhs )

返回 true if lhs and rhs are not equal, and false 否则。

bool operator== (const QQmlSA::Property & lhs , const QQmlSA::Property & rhs )

返回 true if lhs and rhs are equal, and false 否则。