Binding Class
class QQmlSA::Binding特定の型に対する単一のQMLプロパティバインディングを表します。詳細...
ヘッダ | #include <Binding> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
ステータス | テクニカルプレビュー |
パブリック型
class | Bindings |
パブリック関数
QQmlSA::Element | attachingType() const |
QQmlSA::Element | groupType() const |
bool | hasObject() const |
double | numberValue() const |
QQmlSA::Element | objectType() const |
QString | propertyName() const |
QQmlSA::ScriptBindingKind | scriptKind() const |
QQmlSA::SourceLocation | sourceLocation() const |
QString | stringValue() const |
静的パブリックメンバ
bool | isLiteralBinding(QQmlSA::BindingType bindingType) |
メンバー関数ドキュメント
QQmlSA::Element Binding::attachingType() const
このバインディングのコンテントタイプが AttachedProperty の場合はアタッチドタイプを返し、そうでない場合は無効な Element を返します。
QQmlSA::Element Binding::groupType() const
このバインディングのプロパティがグループプロパティの場合はそのタイプを返し、そうでない場合は無効な Element を返します。
bool Binding::hasObject() const
このバインディングにオブジェクトがあればtrue
を返し、なければ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 の と き は関連す る ス ク リ プ ト の種類を返 し 、 そ う でない と き は Script_Invalid を返 し ます。
QQmlSA::SourceLocation Binding::sourceLocation() const
このバインディングが定義されている QML コードの場所を返します。
QString Binding::stringValue() const
このバインディングのコンテントタイプがStringLiteralの場合は関連する文字列リテラルを返し、そうでない場合は空文字列を返します。
© 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.