QWaylandShellSurfaceTemplate Class

template <typename T> class QWaylandShellSurfaceTemplate

QWaylandShellSurfaceTemplate 是一个用于创建自定义外壳表面类的便利类。更多

Header: #include <QWaylandShellSurfaceTemplate>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
继承: QWaylandShellSurface
继承于

QWaylandIviSurface,QWaylandWlShellSurface, 以及QWaylandXdgSurface

静态公共成员

T *findIn(QWaylandObject *container)

详细说明

QWaylandShellSurfaceTemplate 是一个模板类,继承自QWaylandShellSurface ,便于构建自定义 shell 扩展。

它根据扩展协议的 XML 描述,提供Qt Wayland Compositor 与由qtwaylandscanner 生成的类之间的连接。

它提供了两种特定的便利:

使用模式与QWaylandCompositorExtensionTemplate 相同。

另请参阅 自定义外壳

成员函数文档

[static] T *QWaylandShellSurfaceTemplate::findIn(QWaylandObject *container)

如果接口的任何实例已在container 注册,则返回该实例。否则将返回空值。查询基于生成的interfaceName() ,该 与协议描述中的接口名称相匹配。

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