Element Class
class QQmlSA::ElementQMLの型を表す。詳細...
ヘッダ | #include <Element> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
ステータス | テクニカルプレビュー |
パブリック関数
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 | 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 |
メンバ関数の説明
QQmlSA::AccessSemantics Element::accessSemantics() const
この要素のアクセス・セマンティクスを返します。例えば、Reference、Value または Sequence。
QQmlSA::Element Element::baseType() const
この要素が派生している要素を返します。
QString Element::baseTypeName() const
この要素が継承する要素の名前を返します。
QString Element::defaultPropertyName() const
この要素のデフォルトプロパティの名前を返します。ない場合は空文字列を返します。
QString Element::filePath() const
この要素を定義している QML コードのファイルパスを返します。
bool Element::hasMethod(const QString &methodName) const
この要素がmethodName という名前のメソッドを持っているかどうかを返します。
bool Element::hasOwnProperty(const QString &propertyName) const
この Element がpropertyName という名前のプロパティを定義しているかどうかを返します。このプロパティはベースオブジェクトや拡張オブジェクトでは定義されていません。
bool Element::hasOwnPropertyBindings(const QString &propertyName) const
この要素が、そのベースオブジェクトまたは拡張オブジェクトで定義されていないプロパティ・バインディングを持ち、かつその名前がpropertyName であるかどうかを返します。
bool Element::hasProperty(const QString &propertyName) const
この要素がpropertyName という名前のプロパティを持つかどうかを返します。
bool Element::hasPropertyBindings(const QString &name) const
この要素がname という名前のプロパティ・バインディングを持っているかどうかを返します。
bool Element::inherits(const QQmlSA::Element &element) const
この要素がelement を継承しているかどうかを返します。
bool Element::isComposite() const
Qmlから定義されたオブジェクトに対してはtrueを返し、C++から宣言されたオブジェクトに対してはfalseを返します。
bool Element::isPropertyRequired(const QString &propertyName) const
この Element で解決されたpropertyName という名前のプロパティが必須であるかどうかを返します。プロパティが見つからなかった場合は false を返します。
QString Element::name() const
この要素の名前を返します。
QQmlSA::Method::Methods Element::ownMethods() const
この要素のメソッドを返します。このメソッドは、基本オブジェクトや拡張オブジェクトでは定義されていません。
QQmlSA::Binding::Bindings Element::ownPropertyBindings() const
この要素のベースオブジェクトや拡張オブジェクトで定義されていないプロパティバインディングを返します。
QQmlSA::Binding::Bindings Element::ownPropertyBindings(const QString &propertyName) const
この要素のベースオブジェクトや拡張オブジェクトで定義されていない、propertyName という名前のプロパティバインディングを返します。
QQmlSA::Element Element::parentScope() const
この要素を囲む要素を返します。
QQmlSA::Property Element::property(const QString &propertyName) const
propertyName という名前のプロパティが、この Element またはそのベースオブジェクトと拡張オブジェクトに見つかればそれを返し、そうでなければ無効なプロパティを返します。
QList<QQmlSA::Binding> Element::propertyBindings(const QString &propertyName) const
propertyName という名前を持つ、この要素のプロパティ・バインディングを返します。
QQmlSA::ScopeType Element::scopeType() const
Element のスコープの型を返します。
QQmlSA::SourceLocation Element::sourceLocation() const
この要素が定義されている QML コードの位置を返します。
© 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.