En esta página

QQmlSA::Method Class

class QQmlSA::Method

Representa un método de QML. Más información...

Encabezado: #include <qqmlsa.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Estado: Versión preliminar tecnológica

Esta clase se encuentra en fase de vista previa tecnológica y está sujeta a cambios.

Tipos públicos

(technology preview) class Methods

Funciones 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)
bool operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
bool operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)

Descripción detallada

Documentación de las funciones de miembro

Method::Method()

Crea un nuevo objeto «Method».

Method::Method(const QQmlSA::Method &other)

Crea una copia de other.

[noexcept] Method::Method(QQmlSA::Method &&other)

Crea una instancia de «Method» mediante la construcción «move».

[noexcept] Method::~Method()

Destruye el método.

QString Method::methodName() const

Devuelve el nombre de este método.

QQmlSA::MethodType Method::methodType() const

Devuelve el tipo de este método.

QQmlSA::SourceLocation Method::sourceLocation() const

Devuelve la ubicación en el código QML donde se define este método.

[noexcept] QQmlSA::Method &Method::operator=(QQmlSA::Method &&other)

La instrucción «move-assigns» asigna « other » a esta instancia de «Method».

QQmlSA::Method &Method::operator=(const QQmlSA::Method &other)

Asigna ` other ` a esta instancia de `Method`.

Elementos no miembros relacionados

bool operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)

Devuelve « true » si « lhs » y « rhs » no son iguales, y « false » en caso contrario.

bool operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)

Devuelve « true » si « lhs » y « rhs » son iguales, y « false » en caso contrario.

© 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.