The Qt Wayland Compositor is a module that provides convenient and powerful QML and C++ APIs for developing custom display servers based on the Wayland protocol. The display server, often called a compositor, displays content from client applications that support the Wayland protocol.
Wayland's design philosophy is to keep the core protocol simple and minimal. Developers can then expand on this core protocol with use-case-specific extensions. Qt Wayland Compositor supports many common extensions by default, and also has APIs to enable the creation of new, custom extensions.
Typically, a compositor written with Qt Wayland Compositor becomes a subsystem inside a larger application manager process. Qt Wayland Compositor provides the APIs to communicate with clients and display their content on the screen. The QML APIs contain high-level APIs that easily integrate with the rest of Qt, enabling convenient animations, effects, and UI through Qt Quick. There are also C++ APIs available - if you need more low-level access.
An application manager would typically implement additional features such as application life cycle, virtual keyboard input, security, and Inter-Process Communication (IPC). Qt provides the APIs that can be used to develop the remaining parts of an application manager in other modules. The Qt Automotive Suite provides Qt Application Manager, which is a complete application manager that includes a compositor developed using Qt Wayland Compositor.
For more information on Wayland, see Wayland and Qt.
The Qt Wayland Compositor includes features necessary to create a compositor:
The Qt Wayland Compositor recognizes the following environment variables and command-line arguments:
--wayland-socket-name
Overrides the default socket name used for communicating with clients.Take a look at the Qt Wayland Compositor Examples to learn how these APIs can be used to write custom compositors.
The Qt Wayland Compositor can be used from C++ or QML:
Qt Wayland Compositor and the Qt Wayland integration plugin are available under commercial licenses from The Qt Company. In addition, they are available under the GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.
Qt Wayland Compositor and the Qt Wayland integration plugin use protocol definitions under following permissive licenses:
MIT License |
|
MIT License |
|
MIT License |
|
MIT License |
|
MIT License |
|
MIT License |
|
HPND License |
|
MIT License |
|
MIT License |
|
MIT License |
|
Wayland xdg-decoration Protocol, version unstable v1, version 1 |
MIT License |
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.13/qtwaylandcompositor-index.html