QtShell QML Type
Ofrece una extensión de shell para aplicaciones Qt que se ejecutan en un Qt Wayland Compositor. Más...
| Import Statement: | import QtWayland.Compositor.QtShell |
| Since: | Qt 6.3 |
Señales
- void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)
- void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Descripción detallada
La extensión QtShell permite asociar un « QtShellSurface » a una superficie Wayland normal. La extensión QtShell está diseñada para admitir las funciones de gestión de ventanas que admite Qt. Puede resultar adecuada en una plataforma en la que tanto el compositor como las aplicaciones cliente estén escritas con Qt, y en la que se confíe en que las aplicaciones no hagan un uso indebido de funciones como el posicionamiento manual de ventanas y «traer al frente».
Para otros casos de uso, se recomienda utilizar en su lugar IviApplication o XdgShell.
import QtWayland.Compositor.QtShell
WaylandCompositor {
property ListModel shellSurfaces: ListModel {}
QtShell {
onQtShellSurfaceCreated: {
shellSurfaces.append({shellSurface: qtShellSurface})
}
}
}Documentación de Signal
void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)
Esta señal se emite cuando se ha creado un ` QtShellSurface `. El ` qtShellSurface ` proporcionado se utiliza habitualmente para instanciar un ` ShellSurfaceItem`.
Nota: El controlador correspondiente es onQtShellSurfaceCreated.
void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Esta señal se emite cuando el cliente ha solicitado que se asocie un ` QtShellSurface ` a ` surface`. Se espera que el controlador de esta señal cree el ` QtShellSurface ` para ` resource ` y lo inicialice dentro del ámbito de la emisión de la señal. Si no se crea ningún ` QtShellSurface `, se creará uno por defecto en su lugar.
Nota: El controlador correspondiente es onQtShellSurfaceRequested.
© 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.