PropertyPass Class

class QQmlSA::PropertyPass

Basisklasse für alle statischen Analyseübergänge auf Eigenschaften. Mehr...

Kopfzeile: #include <PropertyPass>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Vererbt: QQmlSA::GenericPass
Status: Technische Vorschau

Öffentliche Funktionen

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)

Detaillierte Beschreibung

Dokumentation der Mitgliedsfunktionen

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

Wird immer dann ausgeführt, wenn eine Eigenschaft an einen Wert gebunden wird.

Die Eigenschaft propertyName von element wird mit binding an die Eigenschaft value innerhalb von bindingScope gebunden.

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

Wird ausgeführt, wenn eine Eigenschaft gelesen wird.

Die Eigenschaft propertyName von element wird durch eine Anweisung innerhalb von readScope gelesen, die unter location definiert ist.

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

Wird immer dann ausgeführt, wenn auf eine Eigenschaft geschrieben wird.

Die Eigenschaft propertyName von element wird durch eine Anweisung innerhalb von writeScope beschrieben, die unter location definiert ist. Der Typ des Ausdrucks, der in propertyName geschrieben wird, ist 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.