WaylandHardwareLayer QML Type

Makes a parent WaylandQuickItem use hardware layers for rendering. More...

Import Statement: import QtWayland.Compositor
Status: Preliminary

This type is under development and is subject to change.


Detailed Description

This item needs to be a descendant of a WaylandQuickItem or a derivative, (i.e. ShellSurfaceItem or similar)

The Surface of the parent WaylandQuickItem will be drawn in a hardware specific way instead of the regular way using the QtQuick scene graph. On some platforms, the WaylandQuickItem's current buffer and the scene graph can be blended in a separate step. This makes it possible for clients to update continuously without triggering a full redraw of the compositor scene graph for each frame.

The preferred hardware layer integration may be overridden by setting the QT_WAYLAND_HARDWARE_LAYER_INTEGRATION environment variable.

Property Documentation

stackingLevel : int

This property holds the stacking level of this hardware layer relative to other hardware layers, and can be used to sort hardware layers. I.e. a layer with a higher level is rendered on top of one with a lower level.

Layers with level 0 will be drawn in an implementation defined order on top of the compositor scene graph.

Layers with a level below 0 are drawn beneath the compositor scene graph, if supported by the hardware layer integration.

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