Auf dieser Seite

Qt Wayland Client

Die Bibliothek Qt Wayland Client bietet die notwendigen Funktionen für eine Anwendung, um als Wayland-Client zu agieren und eine Verbindung zu einem Wayland-Compositor herzustellen. Für die meisten Anwendungsfälle wird die Bibliothek automatisch durch das Wayland QPA-Plugin verwendet, und es besteht keine Notwendigkeit für die Anwendung selbst, irgendwelche Funktionen aus der Bibliothek zu verwenden.

Siehe Qt für Linux für allgemeine Informationen. Für weitere Informationen über Wayland selbst, siehe Wayland und Qt.

Die cmake-Funktion qt_generate_wayland_protocol_client_sources() kann verwendet werden, um eigene Protokollerweiterungen zu erstellen.

Qt bietet auch das Qt Wayland Compositor Modul für die Entwicklung von Compositors.

Verwendung des Moduls

Die Verwendung der C++-API eines Qt-Moduls erfordert eine Verknüpfung mit der Modulbibliothek, entweder direkt oder über andere Abhängigkeiten. Mehrere Build-Tools bieten hierfür spezielle Unterstützung, darunter CMake und qmake.

Bauen mit CMake

Verwenden Sie den Befehl find_package(), um die benötigte Modulkomponente im Paket Qt6 zu finden:

find_package(Qt6 REQUIRED COMPONENTS WaylandClient)
target_link_libraries(mytarget PRIVATE Qt6::WaylandClient)

Weitere Einzelheiten finden Sie in der Übersicht Bauen mit CMake.

Bauen mit qmake

Um das Modul für die Erstellung mit qmake zu konfigurieren, fügen Sie das Modul als Wert der Variable QT in der .pro-Datei des Projekts hinzu:

QT += waylandclient

Referenz

Lizenzen und Attributionen

Qt Wayland Compositor und das Qt Wayland Integration Plugin sind unter kommerziellen Lizenzen von The Qt Company erhältlich.

Darüber hinaus ist Qt Wayland Compositor unter der GNU General Public License, Version 3, erhältlich, während das Qt Wayland-Integrations-Plugin unter der GNU Lesser General Public License, Version 3 oder der GNU General Public License, Version 2, erhältlich ist.

Siehe Qt Licensing für weitere Details.

Qt Wayland Compositor und das Qt Wayland-Integrationsplugin verwenden Protokolldefinitionen unter den folgenden erlaubten Lizenzen:

Presentation Time Protocol, version 1

MIT-Lizenz

Wayland Color Management Protocol, version 1

MIT-Lizenz

Wayland Dialog Protocol, version 1

MIT-Lizenz

Wayland EGLStream Controller Protocol, version 1.1.1

MIT-Lizenz

Wayland Fractional Scale Protocol, version 1

MIT-Lizenz

Wayland Fullscreen Shell Protocol, version unstable v1

MIT-Lizenz

Wayland IVI Extension Protocol, version 1.9.1

MIT-Lizenz

Wayland KDE DBus Menu Protocol, version 1

GNU Lesser General Public License 2.1 oder höher

Wayland Linux Dmabuf Unstable V1 Protocol, version unstable v1, version 3

MIT-Lizenz

Wayland Pointer Gestures Protocol, version unstable v1, version 2

MIT-Lizenz

Wayland Pointer Warp Protocol, version version 1

MIT-Lizenz

Wayland Primary Selection Protocol, version 1

MIT-Lizenz

Wayland Protocol, version 1.24.0

MIT-Lizenz

Wayland Scaler Protocol, version 2

MIT-Lizenz

Wayland Session Management Protocol, version experimental V1

MIT-Lizenz

Wayland Tablet Protocol, version unstable v2, version 1

MIT-Lizenz

Wayland Text Input Protocol v1, version unstable v1

MIT-Lizenz

Wayland Text Input Protocol v2, version unstable v2

HPND-Lizenz

Wayland Text Input Protocol, version unstable v3

MIT-Lizenz

Wayland Viewporter Protocol, version 1

MIT-Lizenz

Wayland XDG Foreign Protocol, version 1

MIT-Lizenz

Wayland XDG Output Protocol, version unstable v1, version 3

MIT-Lizenz

Wayland XDG Shell Protocol, version 1.18

MIT-Lizenz

Wayland XDG System Bell Protocol, version 1.18

MIT-Lizenz

Wayland xdg-activation Protocol, version unstable v1, version 1

MIT-Lizenz

Wayland xdg-decoration Protocol, version unstable v1, version 1

MIT-Lizenz

Wayland xdg-toplevel-icon Protocol, version version 1

MIT-Lizenz

Wlr Data Control Unstable V1 Protocol, version 2

MIT-Lizenz

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