En esta página

QtShell QML Type

Proporciona una extensión de shell para aplicaciones Qt que se ejecutan en Qt Wayland Compositor. Más...

Import Statement: import QtWayland.Compositor.QtShell
Since: Qt 6.3

Señales

Descripción detallada

La extensión QtShell proporciona una forma de asociar un QtShellSurface con una superficie Wayland normal. La extensión QtShell está escrita para soportar las características de gestión de ventanas soportadas por Qt. Puede ser 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 abusen de características como el posicionamiento manual de ventanas y el "bring-to-front".

Para otros casos de uso, considere el uso de IviApplication o XdgShell en su lugar.

import QtWayland.Compositor.QtShell

WaylandCompositor {
    property ListModel shellSurfaces: ListModel {}
    QtShell {
        onQtShellSurfaceCreated: {
             shellSurfaces.append({shellSurface: qtShellSurface})
        }
    }
}

Documentación sobre señales

void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)

Esta señal se emite cuando se ha creado un QtShellSurface. El qtShellSurface suministrado se utiliza normalmente para instanciar un ShellSurfaceItem.

Nota: El manejador 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 manejador de esta señal cree el QtShellSurface para resource y lo inicialice dentro del ámbito de emisión de la señal. Si no se crea ningún QtShellSurface, se creará uno por defecto en su lugar.

Nota: El gestor 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.