QQmlSA::PropertyPass Class
class QQmlSA::PropertyPassBasisklasse für alle Durchläufe der statischen Analyse von Eigenschaften. Mehr...
| Header: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Erbt von: | QQmlSA::GenericPass |
| Status: | Technologievorschau |
Diese Klasse befindet sich in der Technologievorschau und kann sich ändern.
Öffentliche Funktionen
| PropertyPass(QQmlSA::PassManager *manager) | |
| virtual void | onBinding(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Binding &binding, const QQmlSA::Element &bindingScope, const QQmlSA::Element &value) |
| virtual void | onCall(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) |
| 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) |
Dokumentation der Mitgliedsfunktionen
PropertyPass::PropertyPass(QQmlSA::PassManager *manager)
Erstellt ein „PropertyPass“-Objekt und verwendet „ manager “, um auf den Pass-Manager zu verweisen.
[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 innerhalb von „ bindingScope “ mit „ binding “ an „ value “ gebunden.
[virtual] void PropertyPass::onCall(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location)
Wird immer dann ausgeführt, wenn eine Eigenschaft oder Methode aufgerufen wird.
Die Eigenschaft oder Methode „ propertyName “ von „ element “ wird als Funktion durch eine Anweisung innerhalb von „ readScope “ aufgerufen, die unter „ location “ definiert ist.
Hinweis: Derzeit werden nur direkte Aufrufe von Methoden oder Eigenschaften unterstützt; indirekte Aufrufe, beispielsweise durch das Speichern einer Methode in einer JavaScript-Variablen und den anschließenden Aufruf dieser Variablen, werden nicht erkannt.
[virtual] void PropertyPass::onRead(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location)
Wird jedes Mal ausgeführt, wenn eine Eigenschaft ausgelesen wird.
Die Eigenschaft „ propertyName “ von „ element “ wird durch eine Anweisung innerhalb von „ readScope “ gelesen, die unter „ location “ definiert ist.
Dies wird auch ausgeführt, wenn die Eigenschaft „ propertyName “ als Funktion aufgerufen wird, da hierfür zunächst die Eigenschaft gelesen werden muss.
[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 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 “ beschrieben wird, ist „ expressionType “.
© 2026 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.