PropertyPass Class

class QQmlSA::PropertyPass

プロパティに対するすべての静的解析パスの基本クラスです。さらに...

ヘッダー #include <PropertyPass>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
継承する: QQmlSA::GenericPass
ステータス技術プレビュー

パブリック関数

virtual void onBinding(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Binding &binding, const QQmlSA::Element &bindingScope, const QQmlSA::Element &value)
virtual void onRead(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location)
virtual void onWrite(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &expressionType, const QQmlSA::Element &writeScope, QQmlSA::SourceLocation location)

詳細説明

メンバ関数の説明

[virtual] void PropertyPass::onBinding(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Binding &binding, const QQmlSA::Element &bindingScope, const QQmlSA::Element &value)

プロパティが値にバインドされるたびに実行される。

element のプロパティpropertyNamebindingScopevaluebinding でバインドされる。

[virtual] void PropertyPass::onRead(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location)

プロパティが読み込まれるたびに実行される。

element のプロパティpropertyName は、location で定義されたreadScope 内の命令によって読み取られる。

[virtual] void PropertyPass::onWrite(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &expressionType, const QQmlSA::Element &writeScope, QQmlSA::SourceLocation location)

プロパティが書き込まれるたびに実行される。

element のプロパティpropertyName は、location で定義されたwriteScope 内の命令によって書き込まれる。propertyName に書き込まれる式の型はexpressionType である。

© 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.