WaylandHardwareLayer QML Type

使父WaylandQuickItem 使用硬件图层进行渲染。更多

Import Statement: import QtWayland.Compositor
Status: Preliminary

此类型正在开发中,可能会有更改。

属性

详细说明

此项目需要是WaylandQuickItem 的后代或衍生项目(即ShellSurfaceItem 或类似项目)

WaylandQuickItem 的表面将以特定硬件方式绘制,而不是使用QtQuick 场景图的常规方式。在某些平台上,WaylandQuickItem 的当前缓冲区和场景图可以在单独的步骤中混合。这样,客户端就可以进行连续更新,而无需在每一帧都重新绘制合成器场景图。

首选的硬件层集成可通过设置 QT_WAYLAND_HARDWARE_LAYER_INTEGRATION 环境变量来覆盖。

属性文档

stackingLevel : int

此属性表示该硬件层相对于其他硬件层的堆叠级别,可用于对硬件层进行排序。也就是说,具有较高等级的图层将被渲染在具有较低等级的图层之上。

层级为 0 的图层将按实现定义的顺序绘制在合成器场景图的顶部。

如果硬件图层集成支持,级别低于 0 的图层将绘制在合成器场景图的下方。


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