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)
}
}
}
}© 2026 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.