Auf dieser Seite

Qt Wayland Client

Die Bibliothek „ Qt Wayland Client “ stellt die erforderlichen Funktionen bereit, damit eine Anwendung als Wayland-Client fungieren und eine Verbindung zu einem Wayland-Compositor herstellen kann. In den meisten Anwendungsfällen wird die Bibliothek automatisch über das Wayland-QPA-Plugin verwendet, sodass die Anwendung selbst keine Funktionen aus der Bibliothek nutzen muss.

Allgemeine Informationen finden Sie unter Qt für Linux. Weitere Informationen zu Wayland selbst finden Sie unter Wayland und Qt.

Die CMake-Funktion ` qt_generate_wayland_protocol_client_sources() ` kann zum Erstellen benutzerdefinierter Protokollerweiterungen verwendet werden.

Qt stellt außerdem das Qt Wayland Compositor Modul für die Entwicklung von Compositors.

Verwendung des Moduls

Die Nutzung der C++-API eines Qt-Moduls erfordert die 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.

Erstellen 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 Informationen finden Sie in der Übersicht „Erstellen mit CMake “.

Erstellen mit qmake

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

QT += waylandclient

Referenz

Lizenzen und Urheberangaben

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

Darüber hinaus steht „ Qt Wayland Compositor “ unter der GNU General Public License, Version 3, zur Verfügung, während das Qt-Wayland-Integrations-Plugin unter der GNU Lesser General Public License, Version 3 , oder der GNU General Public License, Version 2, verfügbar ist.

Weitere Informationen finden Sie unter „Qt-Lizenzierung “.

Qt Wayland Compositor sowie das Qt-Wayland-Integrations-Plugin verwenden Protokolldefinitionen unter folgenden freizügigen 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 Linux Dmabuf V1 Protocol, version v1, version 5

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.