WlScaler QML Type
Provides an extension for surface resizing and cropping. More...
Import Statement: | import QtWayland.Compositor 1.14 |
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.14 WaylandCompositor { // ... WlScaler {} }
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.14/qml-qtwayland-compositor-wlscaler.html