Method Class
class QQmlSA::MethodRepresents a QML method. More...
Header: | #include <Method> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
Status: | Technical Preview |
Public Types
class | Methods |
Public Functions
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) |
Related Non-Members
bool | operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
bool | operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
Member Function Documentation
Method::Method()
Constructs a new Method object.
Method::Method(const QQmlSA::Method &other)
Creates a copy of other.
[noexcept]
Method::Method(QQmlSA::Method &&other)
Move-constructs a Method instance.
[noexcept]
Method::~Method()
Destroys the Method.
QString Method::methodName() const
Returns the name of the this method.
QQmlSA::MethodType Method::methodType() const
Returns the type of this method.
QQmlSA::SourceLocation Method::sourceLocation() const
Returns the location in the QML code where this method is defined.
[noexcept]
QQmlSA::Method &Method::operator=(QQmlSA::Method &&other)
Move-assigns other to this Method instance.
QQmlSA::Method &Method::operator=(const QQmlSA::Method &other)
Assigns other to this Method instance.
Related Non-Members
bool operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
Returns true
if lhs and rhs are not equal, and false
otherwise.
bool operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
Returns true
if lhs and rhs are equal, and false
otherwise.
© 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.