Nesta página

WlShell QML Type

Oferece uma extensão para interfaces de usuário no estilo desktop. Mais...

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

Sinais

Descrição detalhada

A extensão WlShell oferece uma maneira de associar um ShellSurface a uma superfície Wayland comum. Usando a interface da superfície do shell, o cliente pode solicitar que a superfície seja redimensionada, movida e assim por diante.

O WlShell corresponde à interface Wayland wl_shell.

Para disponibilizar a funcionalidade da extensão shell em um compositor, crie uma instância do componente WlShell e adicione-a à lista de extensões suportadas pelo compositor:

import QtWayland.Compositor.WlShell

WaylandCompositor {
    WlShell {
        // ...
    }
}

Documentação do Signal

void wlShellSurfaceCreated(WlShellSurface shellSurface)

Este sinal é emitido quando o cliente cria um ` wl_shell_surface`. Um caso de uso comum é permitir que o manipulador desse sinal instancie um ` ShellSurfaceItem ` ou um ` WaylandQuickItem ` para exibir ` shellSurface ` em uma cena ` QtQuick `.

Observação: O manipulador correspondente é onWlShellSurfaceCreated.

void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)

Este sinal é emitido quando o cliente solicita que um wl_shell_surface seja associado a surface. O manipulador deste sinal pode criar uma superfície de shell para resource e inicializá-la dentro do escopo da emissão do sinal. Caso contrário, um WlShellSurface será criado automaticamente.

Observação: O manipulador correspondente é 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.