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.