Qt Wayland Compositor Examples - Spanning Screens▲
Spanning screens is a Wayland compositor example that maximizes clients across a top and a bottom screen.
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.