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,QWaylandWlShellSurface,QWaylandIviSurfaceQWaylandShellSurfaceTemplate

属性文档

如果ShellSurface 表示模式对话框,则此属性为 true。

此属性在 Qt 6.8 中引入。

访问函数:

bool isModal() const

Notifier 信号:

void modalChanged()

[read-only] windowType : const Qt::WindowType

该属性用于保存QWaylandShellSurface 的窗口类型。

访问功能:

virtual Qt::WindowType windowType() const

Notifier 信号:

void windowTypeChanged()

成员函数 文档

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

为该 QWaylandQuickShellSurface 创建QWaylandQuickShellIntegration 。当itemshellSurface 被分配时,它将被自动调用。

另请参阅 QWaylandQuickShellSurfaceItem

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