Qt Wayland Compositor Examples - Multi Output

Multi Output is an example that demonstrates a compositor with multiple outputs.

Multi Output demonstrates how to display the same clients on different WaylandOutputs with different types of composition.

The example opens two different windows, one for each output. When a client connects, its WaylandSurface is displayed in a GridView on one of the outputs, while a ShellSurface associated with the WaylandSurface is displayed with desktop-style composition on the other output.

Note: In order to support multiple Wayland outputs in the same compositor, the Qt::AA_ShareOpenGLContexts attribute must be set before the QGuiApplication object is constructed.

Example project @ code.qt.io

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