QQmlSA::Method Class
class QQmlSA::MethodStellt eine QML-Methode dar. Mehr...
| Header: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Status: | Technologievorschau |
Diese Klasse befindet sich in der Technologievorschau und kann sich noch ändern.
Öffentliche Typen
(technology preview) class | Methods |
Öffentliche Funktionen
| Method() | |
| Method(const QQmlSA::Method &other) | |
| Method(QQmlSA::Method &&other) | |
| ~Method() | |
| QString | methodName() const |
| QQmlSA::MethodType | methodType() const |
| QQmlSA::SourceLocation | sourceLocation() const |
| QQmlSA::Method & | operator=(QQmlSA::Method &&other) |
| QQmlSA::Method & | operator=(const QQmlSA::Method &other) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
| bool | operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
Dokumentation der Mitgliedsfunktionen
Method::Method()
Erstellt ein neues Method-Objekt.
Method::Method(const QQmlSA::Method &other)
Erstellt eine Kopie von „ other “.
[noexcept] Method::Method(QQmlSA::Method &&other)
Erstellt eine Instanz von „Method“ mithilfe von „Move“.
[noexcept] Method::~Method()
Löscht die Methode.
QString Method::methodName() const
Gibt den Namen dieser Methode zurück.
QQmlSA::MethodType Method::methodType() const
Gibt den Typ dieser Methode zurück.
QQmlSA::SourceLocation Method::sourceLocation() const
Gibt die Stelle im QML-Code zurück, an der diese Methode definiert ist.
[noexcept] QQmlSA::Method &Method::operator=(QQmlSA::Method &&other)
Weist dieser Method-Instanz „ other “ per „Move-Assign“ zu.
QQmlSA::Method &Method::operator=(const QQmlSA::Method &other)
Weist dieser Method-Instanz „ other “ zu.
Verwandte Nicht-Mitglieder
bool operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ nicht gleich sind, andernfalls „ false “.
bool operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ gleich sind, andernfalls „ false “.
© 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.