本页内容

ShellSurfaceItem QML Type

一种Qt Quick 项类型,用于显示ShellSurface 并与之交互。更多内容...

Import Statement: import QtWayland.Compositor
In C++: QWaylandQuickShellSurfaceItem
Inherits:

WaylandQuickItem

属性

详细说明

此类型用于在Qt Quick 场景中渲染xdg_shell 、ivi_application 、wl_shell 或qt_shell 表面。

另请参阅 WaylandQuickItem 、XdgSurface 、IviSurface 、QtShellSurface 以及WlShellSurface 。

属性文档

autoCreatePopupItems : bool [default: true]

该属性用于指定是否应自动创建隶属于由该项管理的壳面且用于弹出窗口的 ShellSurfaceItems。

moveItem : Item

该属性存储了此ShellSurfaceItem 的移动项。当客户端请求对ShellSurface 进行移动、最大化、调整大小等操作时,将被移动的正是该项。在实现服务器端装饰时,此属性非常有用。

shellSurface : ShellSurface

该属性存储由该ShellSurfaceItem 渲染的ShellSurface 。根据所使用的 shell 协议不同,它可能是 XdgSurfaceV5、WlShellSurface 或IviSurface 。

© 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.