Binding Class
class QQmlSA::Binding特定の型に対する単一のQMLプロパティバインディングを表します。詳細...
ヘッダ | #include <Binding> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
ステータス | テクニカルプレビュー |
パブリック型
class | Bindings |
パブリック関数
Binding() | |
Binding(const QQmlSA::Binding &other) | |
Binding(QQmlSA::Binding &&other) | |
~Binding() | |
QQmlSA::Element | attachingType() const |
QQmlSA::BindingType | bindingType() const |
QQmlSA::Element | groupType() const |
bool | hasObject() const |
bool | hasUndefinedScriptValue() const |
double | numberValue() const |
QQmlSA::Element | objectType() const |
QString | propertyName() const |
QQmlSA::ScriptBindingKind | scriptKind() const |
QQmlSA::SourceLocation | sourceLocation() const |
QString | stringValue() const |
QQmlSA::Binding & | operator=(QQmlSA::Binding &&other) |
QQmlSA::Binding & | operator=(const QQmlSA::Binding &other) |
静的パブリックメンバ
bool | isLiteralBinding(QQmlSA::BindingType bindingType) |
関連する非メンバー
bool | operator!=(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs) |
bool | operator==(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs) |
メンバー関数ドキュメント
Binding::Binding()
新しい Binding オブジェクトを構築します。
Binding::Binding(const QQmlSA::Binding &other)
other のコピーを作成する。
[noexcept]
Binding::Binding(QQmlSA::Binding &&other)
Move-Binding
インスタンスを構築する。
[noexcept]
Binding::~Binding()
バインディングを破壊する。
QQmlSA::Element Binding::attachingType() const
こ のバ イ ンデ ィ ン グの コ ン テ ン ツ タ イ プがAttachedProperty であれば添付タ イ プを返し、 そ う でなければ無効な Element を返します。
QQmlSA::BindingType Binding::bindingType() const
このバインディングの型を返します。
QQmlSA::Element Binding::groupType() const
このバインディングのプロパティがグループプロパティの場合はそのタイプを返し、そうでない場合は無効な Element を返します。
bool Binding::hasObject() const
このバインディングにオブジェクトがあればtrue
を返し、なければfalse
を返す。
bool Binding::hasUndefinedScriptValue() const
こ のバ イ ンデ ィ ン グがundefined
に割 り 当て ら れてい る と き の よ う に、 ス ク リ プ ト 値 タ イ プが未定義かど う かを返 し ます。こ のバ イ ンデ ィ ン グの コ ン テ ン ツ タ イ プがQQmlSA::BindingType::Script でない と き は、false
を返 し ます。
[static]
bool Binding::isLiteralBinding(QQmlSA::BindingType bindingType)
bindingType がリテラル型の場合はtrue
を、そうでない場合はfalse
を返す。
double Binding::numberValue() const
こ のバ イ ンデ ィ ン グの コ ン テ ン ツ タ イ プがNumberLiteral であれば関連番号を返 し 、 そ う でなければ 0 を返 し ます。
QQmlSA::Element Binding::objectType() const
このバインディングのコンテントタイプがObjectの場合は関連付けられたオブジェクトのタイプを返し、そうでない場合は無効なElementを返します。
QString Binding::propertyName() const
このバインディングでバインドされているプロパティの名前を返します。
QQmlSA::ScriptBindingKind Binding::scriptKind() const
このバインディングのコンテントタイプが Script の場合は関連するスクリプトの種類を返し、そうでない場合は Invalid を返します。
QQmlSA::SourceLocation Binding::sourceLocation() const
このバインディングが定義されている QML コードの場所を返します。
QString Binding::stringValue() const
こ のバ イ ンデ ィ ン グの コ ン テ ン ツ タ イ プがStringLiteral の場合は関連づけ ら れた文字列 リ テ ラルを返 し 、 そ う でない場合は空文字列を返 し ます。
[noexcept]
QQmlSA::Binding &Binding::operator=(QQmlSA::Binding &&other)
Move-このバインディングインスタンスにother を割り当てます。
QQmlSA::Binding &Binding::operator=(const QQmlSA::Binding &other)
この Binding インスタンスにother を割り当てます。
関連する非会員
bool operator!=(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs)
lhs とrhs が等しくなければtrue
を、そうでなければfalse
を返す。2 つのBindings
は、そのプロパティ名、コンテンツ・タイプ、およびソース位置が一致する場合、等しいと見なされます。
bool operator==(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs)
lhs とrhs が等しければtrue
を、そうでなければfalse
を返す。2 つのBindings
は、そのプロパティ名、コンテンツ・タイプ、およびソース位置が一致する場合、等しいと見なされます。
© 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.