Sur cette page

QWaylandObject Class

QWaylandObject est la classe de base des objets pouvant contenir des extensions Wayland. En savoir plus...

En-tête : #include <QWaylandObject>
CMake : find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake : QT += waylandcompositor
Hérite de : QObject
Hérité par :

QWaylandCompositor, QWaylandCompositorExtension, QWaylandKeyboard, QWaylandOutput, QWaylandPointer, QWaylandSeat, QWaylandSurface, et QWaylandTouch

Fonctions publiques

void addExtension(QWaylandCompositorExtension *extension)
QWaylandCompositorExtension *extension(const QByteArray &name)
QWaylandCompositorExtension *extension(const wl_interface *interface)
QList<QWaylandCompositorExtension *> extensions() const
void removeExtension(QWaylandCompositorExtension *extension)

Fonctions protégées

QWaylandObject(QObject *parent = nullptr)

Description détaillée

La classe QWaylandObject encapsule les fonctionnalités d’un conteneur d’extensions. Tout objet QWaylandObject sera automatiquement un conteneur d’extensions, et tout objec QWaylandCompositorExtension, qui est un descendant de celui-ci, s’ajoutera automatiquement à sa liste d’extensions et s’en retirera lorsque l’objet d’extension sera détruit.

Documentation des fonctions membres

[protected] QWaylandObject::QWaylandObject(QObject *parent = nullptr)

Crée un objet `QWaylandObject` en tant qu'enfant de ` parent`.

void QWaylandObject::addExtension(QWaylandCompositorExtension *extension)

Enregistre l'adresse extension auprès de ce service QWaylandObject.

QWaylandCompositorExtension *QWaylandObject::extension(const QByteArray &name)

Renvoie l'extension de compositeur correspondant à « name » si celle-ci a été enregistrée auprès de l'QWaylandObject. Si aucune extension correspondant à ce nom n'a été enregistrée, cette fonction renvoie null.

QWaylandCompositorExtension *QWaylandObject::extension(const wl_interface *interface)

Renvoie l'extension de compositeur correspondant à l'interface interface si une telle extension a été enregistrée auprès de l'QWaylandObject. Si aucune extension correspondant à cette interface n'a été enregistrée, cette fonction renvoie null.

QList<QWaylandCompositorExtension *> QWaylandObject::extensions() const

Renvoie la liste des extensions de compositeur qui ont été enregistrées auprès de cet QWaylandObject.

void QWaylandObject::removeExtension(QWaylandCompositorExtension *extension)

Supprime extension de la liste des extensions enregistrées sur ce site QWaylandObject, si celle-ci a déjà été enregistrée à l'aide de la fonction addExtension().

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