QWaylandClient Class
La classe QWaylandClient représente un client qui se connecte au site QWaylandCompositor. 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éritages : | 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 |
Emplacements publics
| void | close() |
Membres publics statiques
| QWaylandClient * | fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient) |
Description détaillée
Cette classe correspond à un client qui se connecte au compositeur en utilisant 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 de groupe de ce site 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 de l'utilisateur de ce site QWaylandClient.
Fonctions d'accès :
| qint64 | userId() const |
Documentation des fonctions membres
[override virtual noexcept] QWaylandClient::~QWaylandClient()
Détruit le site QWaylandClient.
wl_client *QWaylandClient::client() const
Retourne le client Wayland de cette QWaylandClient.
[slot] void QWaylandClient::close()
Ferme le client.
[static] QWaylandClient *QWaylandClient::fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)
Renvoie le site QWaylandClient correspondant aux clients Wayland wlClient et compositor. Si un site QWaylandClient n'a pas encore été créé pour un client, il est créé et renvoyé.
[invokable] void QWaylandClient::kill(int signal = SIGTERM)
Tue le client avec l'adresse signal spécifiée.
Note : Cette fonction peut être invoquée via le système de méta-objets et à partir de 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.