In questa pagina

QQmlSA::Method Class

class QQmlSA::Method

Rappresenta un metodo QML. Maggiori informazioni...

Intestazione: #include <qqmlsa.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Stato: Anteprima tecnologica

Questa classe è in anteprima tecnologica ed è soggetta a modifiche.

Tipi pubblici

(technology preview) class Methods

Funzioni pubbliche

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)

Descrizione dettagliata

Documentazione sulle funzioni membro

Method::Method()

Crea un nuovo oggetto Method.

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

Crea una copia di other.

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

Crea un'istanza di Method tramite il costrutto move.

[noexcept] Method::~Method()

Elimina il metodo.

QString Method::methodName() const

Restituisce il nome del presente metodo.

QQmlSA::MethodType Method::methodType() const

Restituisce il tipo di questo metodo.

QQmlSA::SourceLocation Method::sourceLocation() const

Restituisce la posizione nel codice QML in cui è definito questo metodo.

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

L'operazione Move assegna ` other ` a questa istanza di `Method`.

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

Assegna ` other ` a questa istanza di `Method`.

Elementi non membri correlati

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

Restituisce ` true ` se ` lhs ` e ` rhs ` non sono uguali, e ` false ` in caso contrario.

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

Restituisce ` true ` se ` lhs ` e ` rhs ` sono uguali, e ` false ` in 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.