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.