本页内容

QWaylandShellSurface Class

QWaylandShellSurface 类是 shell 扩展所指定表面角色的通用接口。更多内容...

头文件: #include <QWaylandShellSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
在 QML 中: ShellSurface
继承自: QWaylandCompositorExtension
被继承类:

QWaylandShellSurfaceTemplate

属性

公共函数

virtual QWaylandQuickShellIntegration *createIntegration(QWaylandQuickShellSurfaceItem *item) = 0
bool isModal() const
virtual Qt::WindowType windowType() const

信号

详细描述

该接口表示由 Wayland 协议扩展定义的 Wayland 表面角色,该扩展规定了“QWaylandSurface ”应如何映射到屏幕上。

另请参阅 QWaylandSurface 、QWaylandXdgSurface 、QWaylandIviSurface 、QWaylandWlShellSurface 以及QWaylandShellSurfaceTemplate 。

属性文档

如果ShellSurface 表示一个模态对话框,则该属性为真。

该枚举在 Qt 6.8 中引入。

访问函数:

bool isModal() const

Notifier 信号:

void modalChanged()

[read-only] windowType : Qt::WindowType

该属性存储了QWaylandShellSurface 的window type 。

访问函数:

virtual Qt::WindowType windowType() const

通知器信号:

void windowTypeChanged()

成员函数文档

[pure virtual] QWaylandQuickShellIntegration *QWaylandShellSurface::createIntegration(QWaylandQuickShellSurfaceItem *item)

为该 QWaylandQuickShellSurface 创建一个QWaylandQuickShellIntegration 。当item 的shellSurface 被赋值时,该函数会自动被调用。

另请参阅 QWaylandQuickShellSurfaceItem 。

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