Qt Wayland Compositor C++ Classes

提供用于编写自定义 Wayland 显示服务器的 C++ 类。更多

QWaylandBufferRef

持有表面缓冲区的引用

QWaylandClient

代表连接到 QWaylandCompositor 的客户端

QWaylandCompositor

管理 Wayland 显示服务器

QWaylandCompositorExtension

编辑器扩展的基类

QWaylandCompositorExtensionTemplate

用于子类化 QWaylandCompositorExtension 的便利类

QWaylandIdleInhibitManagerV1

提供可抑制编辑器空闲行为的扩展

QWaylandIviApplication

嵌入式用户界面扩展

QWaylandIviSurface

识别和调整曲面大小的简单方法

QWaylandKeyboard

代表键盘设备

QWaylandObject

可包含 Wayland 扩展的对象基类

QWaylandOutput

代表由合成器管理的可显示区域

QWaylandOutputMode

保存输出的分辨率和刷新率

QWaylandPointer

代表指针设备

QWaylandPresentationTime

用于获取屏幕显示时序的扩展

QWaylandQtTextInputMethodManager

提供对合成器中输入方法的访问权限

QWaylandQuickItem

Qt Quick 代表 QWaylandView 的项目

QWaylandQuickShellIntegration

为与 QtQuick 的外壳表面集成提供支持

QWaylandQuickShellSurfaceItem

Qt Quick 代表 QWaylandShellSurface 的项目

QWaylandResource

wl_resource 的容器

QWaylandSeat

访问键盘、鼠标和触摸输入

QWaylandShellSurface

为外壳扩展指定的表面角色提供通用接口

QWaylandShellSurfaceTemplate

创建自定义外壳表面类的便利类

QWaylandSurface

代表输出设备上的矩形区域

QWaylandSurfaceGrabber

允许读取 QWaylandSurface 的内容

QWaylandSurfaceRole

代表曲面在 wl_surface 上下文中的角色

QWaylandTextInputManager

可访问合成器中的输入方法

QWaylandTouch

访问触摸设备

QWaylandView

代表曲面在输出端上的视图

QWaylandViewporter

提供曲面大小调整和裁剪的扩展功能

QWaylandWlShell

桌面风格用户界面的扩展

QWaylandWlShellSurface

为曲面提供桌面风格合成器的特定功能

QWaylandXdgDecorationManagerV1

为协商服务器端和客户端窗口装饰提供扩展功能

QWaylandXdgOutputManagerV1

提供以桌面方式描述输出的扩展功能

QWaylandXdgPopup

代表 xdg 表面的弹出式特定部分

QWaylandXdgShell

桌面风格用户界面扩展

QWaylandXdgSurface

为 xdg 表面提供桌面风格合成器特定功能

QWaylandXdgToplevel

代表 xdg 表面的顶层窗口特定部分

详细说明

使用模块

使用 Qt 模块的 C++ API 需要直接或通过其他依赖项链接模块库。有几种构建工具为此提供了专门支持,包括CMakeqmake

使用 CMake 构建

使用find_package() 命令在Qt6 软件包中找到所需的模块组件:

find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)

更多详情,请参阅使用 CMake 构建概述。

使用 qmake 构建

要配置模块以便用 qmake 构建,可在项目的 .pro 文件中将模块添加为QT 变量的值:

QT += waylandcompositor

有关在应用程序中使用这些类的更多信息,请参阅 Qt Wayland Compositor文档。

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