QQmlSA::PropertyPass Class
class QQmlSA::PropertyPassBasisklasse 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
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)
Erzeugt ein PropertyPass-Objekt und verwendet manager, um auf den Passmanager 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 mit binding an die Eigenschaft value innerhalb von bindingScope 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, z. B. durch Speichern einer Methode in einer JavaScript-Variablen und anschließenden Aufruf der Variablen, werden nicht erkannt.
[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.
Dies wird auch ausgeführt, wenn die Eigenschaft propertyName als Funktion aufgerufen wird, da dies voraussetzt, dass die Eigenschaft zuerst gelesen wird.
[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.