XdgDecorationManagerV1 QML 类型
提供了一种协商服务器端和客户端窗口装饰的扩展方式。更多...
| 导入语句 | import QtWayland.Compositor.XdgShell | 
| 实例化 | QWaylandXdgDecorationManagerV1 | 
属性
- preferredMode : string
详细描述
XdgDecorationManagerV1 扩展提供了一个组合器声明支持服务器端窗口装饰的方法,并允许 xdg-shell 客户端通讯其是否更喜欢客户端或服务器端装饰。
XdgDecorationManagerV1 对应于 Wayland 接口,zxdg_decoration_manager_v1。
为了提供组合器的扩展功能,创建一个 XdgDecorationManagerV1 组件实例并将其添加到组合器支持的扩展列表中
import QtWayland.Compositor
WaylandCompositor {
    // Xdg decoration manager assumes xdg-shell is being used
    XdgShell {
        onToplevelCreated: // ...
    }
    XdgDecorationManagerV1 {
        // Provide a hint to clients that support the extension they should use server-side
        // decorations.
        preferredMode: XdgToplevel.ServerSideDecoration
    }
}另请参阅 QWaylandXdgToplevel::decorationMode 和 服务器端装饰组合器。
属性文档
| preferredMode : string | 
此属性保存组合器偏好的装饰模式。
这是默认用于未指示服务器端或客户端装饰偏好的客户端的模式。
© 2024 The Qt Company Ltd。本文件中包含的文档贡献均为各自所有者的版权。本文件提供的文档根据自由软件基金会发布的 GNU 自由文档许可证 1.3 版 许可。Qt 及其相关标志是 The Qt Company Ltd. 在芬兰及其它国家/地区的商标。所有其他商标均为其各自所有者的财产。