En esta página

WlShell QML Type

Proporciona una extensión para interfaces de usuario de estilo escritorio. Más...

Import Statement: import QtWayland.Compositor.WlShell
In C++: QWaylandWlShell

Señales

Descripción detallada

La extensión WlShell proporciona una forma de asociar un ShellSurface con una superficie Wayland normal. Utilizando la interfaz de superficie shell, el cliente puede solicitar que la superficie cambie de tamaño, se mueva, etc.

WlShell se corresponde con la interfaz de Wayland wl_shell.

Para proporcionar la funcionalidad de la extensión shell en un compositor, cree una instancia del componente WlShell y añádalo a la lista de extensiones soportadas por el compositor:

import QtWayland.Compositor.WlShell

WaylandCompositor {
    WlShell {
        // ...
    }
}

Signal Documentación

void wlShellSurfaceCreated(WlShellSurface shellSurface)

Esta señal se emite cuando el cliente ha creado un wl_shell_surface. Un caso de uso común es dejar que el manejador de esta señal instancie un ShellSurfaceItem o WaylandQuickItem para mostrar shellSurface en una escena QtQuick.

Nota: El manejador correspondiente es onWlShellSurfaceCreated.

void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)

Esta señal se emite cuando el cliente ha solicitado que se asocie un wl_shell_surface a surface. El manejador de esta señal puede crear una superficie shell para resource e inicializarla dentro del ámbito de emisión de la señal. En caso contrario, se creará automáticamente una WlShellSurface.

Nota: El manejador correspondiente es onWlShellSurfaceRequested.

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