WlScaler QML Type

Provides an extension for surface resizing and cropping. More...

Import Statement: import QtWayland.Compositor 1.15
Since: Qt 5.13

Detailed Description

The WlScaler extension provides a way for clients to resize and crop surface contents.

WlScaler corresponds to the Wayland interface, wl_scaler.

wl_scaler is a non-standard and deprecated protocol that has largely been replaced by wp_viewporter. I.e. This extensions is only useful for supporting legacy clients. wp_viewporter support is enabled automatically for all Qml compositors.

To provide the functionality of the extension in a compositor, create an instance of the WlScaler component and add it to the list of extensions supported by the compositor:

 import QtWayland.Compositor 1.15

 WaylandCompositor {
     // ...
     WlScaler {}
 }