QWaylandClient Class
La classe `QWaylandClient` représente un client connecté à l'QWaylandCompositor. En savoir plus...
| En-tête : | #include <QWaylandClient> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake : | QT += waylandcompositor |
| En QML : | WaylandClient |
| Hérite de : | QObject |
Propriétés
- compositor : QWaylandCompositor* const
- groupId : const qint64
- processId : const qint64
- userId : const qint64
Fonctions publiques
| virtual | ~QWaylandClient() override |
| wl_client * | client() const |
| QWaylandCompositor * | compositor() const |
| qint64 | groupId() const |
| void | kill(int signal = SIGTERM) |
| qint64 | processId() const |
| qint64 | userId() const |
Variables publiques
| void | close() |
Membres publics statiques
| QWaylandClient * | fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient) |
Description détaillée
Cette classe correspond à un client connecté au compositeur via le protocole Wayland. Elle correspond à l'interface Wayland wl_client.
Documentation des propriétés
[read-only] compositor : QWaylandCompositor* const
Cette propriété contient le compositeur de cette QWaylandClient.
Fonctions d'accès :
| QWaylandCompositor * | compositor() const |
[read-only] groupId : const qint64
Cette propriété contient l'identifiant du groupe associé à cette QWaylandClient.
Fonctions d'accès :
| qint64 | groupId() const |
[read-only] processId : const qint64
Cette propriété contient l'identifiant du processus de cette QWaylandClient.
Fonctions d'accès :
| qint64 | processId() const |
[read-only] userId : const qint64
Cette propriété contient l'identifiant utilisateur de cette QWaylandClient.
Fonctions d'accès :
| qint64 | userId() const |
Documentation sur les fonctions membres
[override virtual noexcept] QWaylandClient::~QWaylandClient()
Supprime l'QWaylandClient.
wl_client *QWaylandClient::client() const
Renvoie le client Wayland de cet QWaylandClient.
[slot] void QWaylandClient::close()
Ferme le client.
[static] QWaylandClient *QWaylandClient::fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)
Renvoie l'objet ` QWaylandClient ` correspondant au client Wayland wlClient et compositor. Si un objet ` QWaylandClient ` n'a pas encore été créé pour un client, il est créé puis renvoyé.
[invokable] void QWaylandClient::kill(int signal = SIGTERM)
Ferme le client associé à l'signal spécifiée.
Remarque : cette fonction peut être appelée via le système de méta-objets et depuis QML. Voir Q_INVOKABLE.
© 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.