表示 QML 类型。 更多...
| 头: |
#include <Element>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
|
| 状态: | 技术预览 |
| Element () | |
| Element (const QQmlSA::Element & other ) | |
| Element (QQmlSA::Element && other ) | |
| ~Element () | |
| QQmlSA::AccessSemantics | accessSemantics () const |
| QQmlSA::Element | baseType () const |
| QString | baseTypeName () const |
| QString | defaultPropertyName () const |
| QString | filePath () const |
| bool | hasMethod (const QString & methodName ) const |
| bool | hasOwnProperty (const QString & propertyName ) const |
| bool | hasOwnPropertyBindings (const QString & propertyName ) const |
| bool | hasProperty (const QString & propertyName ) const |
| bool | hasPropertyBindings (const QString & name ) const |
| bool | inherits (const QQmlSA::Element & element ) const |
| bool | isComposite () const |
| bool | isNull () const |
| bool | isPropertyRequired (const QString & propertyName ) const |
| QString | name () const |
| QQmlSA::Method::Methods | ownMethods () const |
| QQmlSA::Binding::Bindings | ownPropertyBindings () const |
| QQmlSA::Binding::Bindings | ownPropertyBindings (const QString & propertyName ) const |
| QQmlSA::Element | parentScope () const |
| QQmlSA::Property | property (const QString & propertyName ) const |
| QList<QQmlSA::Binding> | propertyBindings (const QString & propertyName ) const |
| QQmlSA::ScopeType | scopeType () const |
| QQmlSA::SourceLocation | sourceLocation () const |
| bool | operator bool () const |
| bool | operator! () const |
| QQmlSA::Element & | operator= (QQmlSA::Element && other ) |
| QQmlSA::Element & | operator= (const QQmlSA::Element & other ) |
| qsizetype | qHash (const QQmlSA::Element & key , qsizetype seed = 0) |
| bool | operator!= (const QQmlSA::Element & lhs , const QQmlSA::Element & rhs ) |
| bool | operator== (const QQmlSA::Element & lhs , const QQmlSA::Element & rhs ) |
Constructs a new Element object.
创建副本为 other .
[noexcept]
Element::
元素
(
QQmlSA::Element
&&
other
)
Move-constructs an Element instance.
[noexcept]
Element::
~Element
()
Destroys the element.
Returns the access semantics of this Element. For example, Reference, Value or Sequence.
返回派生此元素的元素。
Returns the name of the Element this Element derives from.
Returns the name of the default property of this Element. If it doesn't have one, returns an empty string.
Returns the file path of the QML code that defines this Element.
Returns whether this Element has a method with the name methodName .
Returns whether this Element defines a property with the name propertyName which is not defined on its base or extension objects.
Returns whether this Element has property bindings which are not defined in its base or extension objects and that have name propertyName .
Returns whether this Element has a property with the name propertyName .
Returns whether this Element has a property binding with the name name .
返回此元素是否继承自 element .
返回
true
for objects defined from Qml, and
false
for objects declared from C++.
返回
true
if this element is null,
false
否则。
Returns whether the property with the name propertyName resolved on this Element is required. Returns false if the the property couldn't be found.
返回此元素的名称。
Returns this Elements's methods, which are not defined on its base or extension objects.
Returns this Element's property bindings which are not defined on its base or extension objects.
Returns this Element's property bindings which are not defined on its base or extension objects and that have the name propertyName .
Returns the Element that encloses this Element.
Returns the property with the name propertyName if it is found in this Element or its base and extension objects, otherwise returns an invalid property.
Returns this Element's property bindings that have the name propertyName .
Returns the type of Element's scope.
Returns the location in the QML code where this Element is defined.
[explicit]
bool
Element::
operator bool
() const
返回
true
if this element is not null,
false
否则。
返回
true
if this element is null,
false
否则。
[noexcept]
QQmlSA::Element
&Element::
operator=
(
QQmlSA::Element
&&
other
)
移动赋值 other to this Element instance.
赋值 other to this element instance.
[noexcept]
qsizetype
qHash
(const
QQmlSA::Element
&
key
,
qsizetype
seed
= 0)
Returns the hash for key 使用 seed 做计算种子。
返回
true
if
lhs
and
rhs
are not equal, and
false
否则。
返回
true
if
lhs
and
rhs
are equal, and
false
否则。