XdgOutputManagerV1 QML Type

デスクトップ指向で出力を記述するための拡張機能を提供する。詳細...

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

詳しい説明

XdgOutputManagerV1 エクステンションは、コンポジターがデスクトップ指向システムの出力概念に沿った方法で出力を記述する方法を提供します。

いくつかの情報は、IVIシステムなどの他のアプリケーションでは意味をなさないかもしれません。

通常、デスクトップシステム上のグローバルコンポジター空間は、矩形領域の連続または重複したセットで構成されます。

XdgOutputManagerV1 は Wayland インターフェースzxdg_output_manager_v1 に対応しています。

コンポジターで拡張機能の機能を提供するには、XdgOutputManagerV1コンポーネントのインスタンスを作成し、コンポジターがサポートする拡張機能のリストに追加し、各XdgOutputV1をその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)
            }
        }
    }
}

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