Element Class
class QQmlSA::ElementQMLの型を表す。詳細...
ヘッダ | #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) |
メンバー関数ドキュメント
Element::Element()
新しい Element オブジェクトを構築します。
Element::Element(const QQmlSA::Element &other)
other のコピーを作成する。
[noexcept]
Element::Element(QQmlSA::Element &&other)
Move-要素のインスタンスを構築する。
[noexcept]
Element::~Element()
エレメントを破壊する。
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::isNull() const
この要素が NULL の場合はtrue
を、それ以外の場合は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 コードの位置を返します。
[explicit]
bool Element::operator bool() const
この要素が NULL でない場合はtrue
を、そうでない場合はfalse
を返す。
bool Element::operator!() const
この要素が NULL の場合はtrue
を、それ以外の場合はfalse
を返す。
[noexcept]
QQmlSA::Element &Element::operator=(QQmlSA::Element &&other)
Move- この Element インスタンスにother を割り当てる。
QQmlSA::Element &Element::operator=(const QQmlSA::Element &other)
この要素インスタンスにother を割り当てます。
関連する非会員
[noexcept]
qsizetype qHash(const QQmlSA::Element &key, qsizetype seed = 0)
seed を計算の種として使用し、key のハッシュを返す。
bool operator!=(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs)
lhs とrhs が等しくなければtrue
を、そうでなければfalse
を返す。
bool operator==(const QQmlSA::Element &lhs, const QQmlSA::Element &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.