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 否則。