ShellSurface QML Type (Uncreatable)
为 shell 扩展指定的界面角色提供了一个通用接口。更多...
| Import Statement: | import QtWayland.Compositor |
| In C++: | QWaylandShellSurface |
注意:此类型无法创建。无法在 QML 中实例化。
属性
- modal : bool
(since 6.8) - windowType : enum
详细说明
该接口表示由 Wayland 协议扩展定义的 Wayland 表面角色,该扩展规定了WaylandSurface 应如何映射到屏幕上。
注意:尽管 此类包含的 API 非常有限,但 各实现的属性与信号命名保持了一致。例如,若您在合成器中仅使用桌面 shell 扩展,则可安全地直接访问 ShellSurface 上的 title、maximized 等属性。有关其他属性与信号,请参阅各实现。
另请参阅 WaylandSurface 、ShellSurfaceItem 、XdgSurface 、IviSurface 以及WlShellSurface 。
属性文档
modal : bool [read-only, since 6.8]
如果ShellSurface 表示一个模态对话框,则该属性为真。
该属性自 Qt 6.8 起引入。
windowType : enum [read-only]
该属性保存了ShellSurface 的window type 。
© 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.