XdgOutputManagerV1 QML Type

Provides an extension for describing outputs in a desktop oriented fashion. More...

Import Statement: import QtWayland.Compositor.XdgShell
In C++: QWaylandXdgOutputManagerV1

Detailed Description

The XdgOutputManagerV1 extension provides a way for a compositor to describe outputs in a way that is more in line with the concept of an output on desktop oriented systems.

Some information may not make sense in other applications such as IVI systems.

Typically the global compositor space on a desktop system is made of a contiguous or overlapping set of rectangular regions.

XdgOutputManagerV1 corresponds to the Wayland interface, zxdg_output_manager_v1.

To provide the functionality of the extension in a compositor, create an instance of the XdgOutputManagerV1 component and add it to the list of extensions supported by the compositor, and associated each XdgOutputV1 with its WaylandOutput:

import QtWayland.Compositor

WaylandCompositor {
    XdgOutputManagerV1 {
        WaylandOutput {
            id: output1

            position: Qt.point(0, 0)
            window: Window {}

            XdgOutputV1 {
                name: "WL-1"
                logicalPosition: output1.position
                logicalSize: Qt.size(output1.geometry.width / output1.scaleFactor,
                                     output1.geometry.height / output1.scaleFactor)
            }
        }

        WaylandOutput {
            id: output2

            position: Qt.point(800, 0)
            window: Window {}

            XdgOutputV1 {
                name: "WL-2"
                logicalPosition: output2.position
                logicalSize: Qt.size(output2.geometry.width / output2.scaleFactor,
                                     output2.geometry.height / output2.scaleFactor)
            }
        }
    }
}

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