Sur cette page

QQmlSA::Method Class

class QQmlSA::Method

Représente une méthode QML. Plus d'informations...

En-tête : #include <Method>
CMake : find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)

Types publics

class Methods

Fonctions publiques

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)

Description détaillée

Documentation sur les fonctions des membres

Method::Method()

Construit un nouvel objet Méthode.

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

Crée une copie de other.

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

Move-construit une instance de méthode.

[noexcept] Method::~Method()

Détruit la méthode.

QString Method::methodName() const

Renvoie le nom de cette méthode.

QQmlSA::MethodType Method::methodType() const

Renvoie le type de cette méthode.

QQmlSA::SourceLocation Method::sourceLocation() const

Renvoie l'emplacement dans le code QML où cette méthode est définie.

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

Move-assigne other à cette instance de méthode.

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

Attribue other à cette instance de méthode.

Non-membres apparentés

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

Renvoie true si lhs et rhs ne sont pas égaux, et false dans le cas contraire.

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

Renvoie true si lhs et rhs sont égaux, et false sinon.

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