QWaylandClient Class
Die Klasse „QWaylandClient“ stellt einen Client dar, der mit dem „ QWaylandCompositor “ verbunden ist. Mehr...
| Header: | #include <QWaylandClient> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| In QML: | WaylandClient |
| Erbt von: | QObject |
Eigenschaften
- compositor : QWaylandCompositor* const
- groupId : const qint64
- processId : const qint64
- userId : const qint64
Öffentliche Funktionen
| virtual | ~QWaylandClient() override |
| wl_client * | client() const |
| QWaylandCompositor * | compositor() const |
| qint64 | groupId() const |
| void | kill(int signal = SIGTERM) |
| qint64 | processId() const |
| qint64 | userId() const |
Öffentliche Slots
| void | close() |
Statische öffentliche Mitglieder
| QWaylandClient * | fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient) |
Ausführliche Beschreibung
Diese Klasse entspricht einem Client, der über das Wayland-Protokoll mit dem Compositor verbunden ist. Sie entspricht der Wayland-Schnittstelle wl_client.
Dokumentation der Eigenschaften
[read-only] compositor : QWaylandCompositor* const
Diese Eigenschaft enthält den Compositor dieses „ QWaylandClient “.
Zugriffsfunktionen:
| QWaylandCompositor * | compositor() const |
[read-only] groupId : const qint64
Diese Eigenschaft enthält die Gruppen-ID dieses QWaylandClient.
Zugriffsfunktionen:
| qint64 | groupId() const |
[read-only] processId : const qint64
Diese Eigenschaft enthält die Prozess-ID dieses „ QWaylandClient “.
Zugriffsfunktionen:
| qint64 | processId() const |
[read-only] userId : const qint64
Diese Eigenschaft enthält die Benutzer-ID dieses QWaylandClient.
Zugriffsfunktionen:
| qint64 | userId() const |
Dokumentation zu den Member-Funktionen
[override virtual noexcept] QWaylandClient::~QWaylandClient()
Zerstört die „ QWaylandClient “.
wl_client *QWaylandClient::client() const
Gibt den Wayland-Client dieses „ QWaylandClient “ zurück.
[slot] void QWaylandClient::close()
Schließt den Client.
[static] QWaylandClient *QWaylandClient::fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)
Gibt die „ QWaylandClient “ zurück, die den Wayland-Clients „ wlClient “ und „ compositor “ entspricht. Falls für einen Client noch kein „ QWaylandClient “ angelegt wurde, wird dieser angelegt und zurückgegeben.
[invokable] void QWaylandClient::kill(int signal = SIGTERM)
Beendet den Client mit dem angegebenen signal.
Hinweis: Diese Funktion kann über das Metaobjektsystem und aus QML aufgerufen werden. Siehe 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.