QWaylandClient Class

Die Klasse QWaylandClient repräsentiert einen Client, der sich mit QWaylandCompositor verbindet. Mehr...

Kopfzeile: #include <QWaylandClient>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
In QML: WaylandClient
Vererbt: QObject

Öffentliche Typen

Eigenschaften

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

Detaillierte Beschreibung

Diese Klasse entspricht einem Client, der sich über das Wayland-Protokoll mit dem Compositor verbindet. Sie entspricht der Wayland-Schnittstelle wl_client.

Dokumentation der Eigenschaften

[read-only] compositor : QWaylandCompositor* const

Diese Eigenschaft enthält den Compositor dieser QWaylandClient.

Zugriffsfunktionen:

QWaylandCompositor *compositor() const

[read-only] groupId : const qint64

Diese Eigenschaft enthält die Gruppennummer dieser QWaylandClient.

Zugriffsfunktionen:

qint64 groupId() const

[read-only] processId : const qint64

Diese Eigenschaft enthält die Prozess-ID dieser QWaylandClient.

Zugriffsfunktionen:

qint64 processId() const

[read-only] userId : const qint64

Diese Eigenschaft enthält die Benutzerkennung dieser QWaylandClient.

Zugriffsfunktionen:

qint64 userId() const

Dokumentation der Mitgliedsfunktionen

[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 dem Wayland-Client wlClient und compositor entspricht. Wenn für einen Client noch kein QWaylandClient erstellt wurde, wird er erstellt und zurückgegeben.

[invokable] void QWaylandClient::kill(int signal = SIGTERM)

Beendet den Client mit dem angegebenen signal.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.

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