WlShell QML Type
Ofrece una extensión para interfaces de usuario de tipo escritorio. Más información...
| Import Statement: | import QtWayland.Compositor.WlShell |
| In C++: | QWaylandWlShell |
Señales
- void wlShellSurfaceCreated(WlShellSurface shellSurface)
- void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Descripción detallada
La extensión WlShell permite asociar un « ShellSurface » a una superficie Wayland normal. Mediante la interfaz de superficie del shell, el cliente puede solicitar que se cambie el tamaño de la superficie, 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, crea una instancia del componente WlShell y añádela a la lista de extensiones compatibles con el compositor:
import QtWayland.Compositor.WlShell
WaylandCompositor {
WlShell {
// ...
}
}Documentación de Signal
void wlShellSurfaceCreated(WlShellSurface shellSurface)
Esta señal se emite cuando el cliente ha creado un ` wl_shell_surface`. Un caso de uso habitual es que el controlador de esta señal instancie un ` ShellSurfaceItem ` o un ` WaylandQuickItem ` para mostrar ` shellSurface ` en una escena ` QtQuick `.
Nota: El controlador 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 controlador de esta señal puede crear una superficie de shell para ` resource ` e inicializarla dentro del ámbito de la emisión de la señal. De lo contrario, se creará automáticamente un ` WlShellSurface `.
Nota: El controlador 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.