XdgShellV6 QML Type

Provides an extension for desktop-style user interfaces. More...

Import Statement: import QtWayland.Compositor 1.14
Since: Qt 5.10

Signals

Methods

Detailed Description

The XdgShellV6 extension provides a way to associate a XdgToplevelV6 or XdgPopupV6 with a regular Wayland surface. Using the XdgToplevelV6 interface, the client can request that the surface is resized, moved, and so on.

XdgShellV6 corresponds to the Wayland interface, zxdg_shell_v6.

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

import QtWayland.Compositor 1.14

WaylandCompositor {
    XdgShellV6 {
        // ...
    }
}

Signal Documentation

pong(serial)

This signal is emitted when the client has responded to a ping event with serial, serial.

See also ping().

popupCreated(popup, XdgSurfaceV6 xdgSurface)

This signal is emitted when the client has created a zxdg_popup_v6. A common use case is to let the handler of this signal instantiate a ShellSurfaceItem or WaylandQuickItem for displaying popup in a QtQuick scene.

xdgSurface is the XdgSurfaceV6 popup is the role object for.

toplevelCreated(toplevel, XdgSurfaceV6 xdgSurface)

This signal is emitted when the client has created a zxdg_toplevel_v6. A common use case is to let the handler of this signal instantiate a ShellSurfaceItem or WaylandQuickItem for displaying toplevel in a QtQuick scene.

xdgSurface is the XdgSurfaceV6 toplevel is the role object for.

xdgSurfaceCreated(xdgSurface)

This signal is emitted when the client has created a zxdg_surface_v6. Note that xdgSurface is not mapped, i.e. according to the xdg-shell protocol it should not be displayed, until it has received a role object.

See also toplevelCreated() and popupCreated().

Method Documentation

void ping(client)

Sends a ping event to client. If the client replies to the event the pong signal will be emitted.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.14/qml-qtwayland-compositor-xdgshellv6.html