QQmlSA::Method Class
class QQmlSA::MethodRepresenta um método QML. Mais...
| Cabeçalho: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| Status: | Prévia tecnológica |
Esta classe está em pré-visualização tecnológica e está sujeita a alterações.
Tipos públicos
(technology preview) class | Methods |
Funções públicas
| 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) |
Elementos não membros relacionados
| bool | operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
| bool | operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
Documentação das funções de membro
Method::Method()
Cria um novo objeto `Method`.
Method::Method(const QQmlSA::Method &other)
Cria uma cópia de other.
[noexcept] Method::Method(QQmlSA::Method &&other)
Cria uma instância do método usando a construção `move`.
[noexcept] Method::~Method()
Destrói o método.
QString Method::methodName() const
Retorna o nome deste método.
QQmlSA::MethodType Method::methodType() const
Retorna o tipo deste método.
QQmlSA::SourceLocation Method::sourceLocation() const
Retorna a localização no código QML onde este método está definido.
[noexcept] QQmlSA::Method &Method::operator=(QQmlSA::Method &&other)
A instrução `Move` atribui ` other ` a esta instância do método.
QQmlSA::Method &Method::operator=(const QQmlSA::Method &other)
Atribui ` other ` a esta instância do método.
Não-membros relacionados
bool operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
Retorna ` true ` se ` lhs ` e ` rhs ` não forem iguais e, caso contrário, ` false `.
bool operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
Retorna ` true ` se ` lhs ` e ` rhs ` forem iguais e, caso contrário, ` 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.