ShellSurface QML Type
为 shell 扩展指定的表面角色提供通用接口。更多
Import Statement: | import QtWayland.Compositor |
In C++: | QWaylandShellSurface |
属性
- modal : bool
(since 6.8)
- windowType : enum
详细说明
该接口代表 Wayland 表面角色,由 Wayland 协议扩展提供,定义了WaylandSurface 应如何映射到屏幕上。
注意: 尽管该类型包含的 API 非常有限,但其实现的属性和信号名称都是一致的。例如,如果您只在合成器中使用桌面 shell 扩展,那么直接在 ShellSurface 上访问标题、最大化等属性是安全的。有关其他属性和信号,请参见各种实现。
另请参见 WaylandSurface,ShellSurfaceItem,WlShellSurface 和IviSurface 。
属性文档
modal : bool |
如果ShellSurface 表示模态对话框,则此属性为 true。
该属性在 Qt 6.8 中引入。
windowType : enum |
该属性表示ShellSurface 的窗口类型。
© 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.