Sur cette page

QQmlSA::Method Class

class QQmlSA::Method

Représente une méthode QML. En savoir plus...

En-tête : #include <qqmlsa.h>
CMake : find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Statut : Aperçu technologique

Cette classe est en préversion technologique et est susceptible d'être modifiée.

Types publics

(technology preview) 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 membres

Method::Method()

Crée un nouvel objet « Method ».

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

Crée une copie de other.

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

Crée une instance de la classe `Method` à l'aide du constructeur `move`.

[noexcept] Method::~Method()

Supprime 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)

Cette instruction « move-assign » attribue l'other à cette instance de Method.

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

Attribue l'other e à cette instance de méthode.

Éléments non membres associé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 » dans le cas contraire.

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