QtShell QML Type
Oferece uma extensão de shell para aplicativos Qt em execução no Qt Wayland Compositor. Mais...
| Import Statement: | import QtWayland.Compositor.QtShell |
| Since: | Qt 6.3 |
Sinais
- void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)
- void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Descrição detalhada
A extensão QtShell oferece uma maneira de associar um QtShellSurface a uma superfície Wayland comum. A extensão QtShell foi desenvolvida para oferecer suporte aos recursos de gerenciamento de janelas oferecidos pelo Qt. Ela pode ser adequada em plataformas nas quais tanto o compositor quanto os aplicativos clientes são desenvolvidos com o Qt e nas quais se tem certeza de que os aplicativos não abusarão de recursos como o posicionamento manual de janelas e o “trazer para a frente”.
Para outros casos de uso, considere utilizar IviApplication ou XdgShell em vez disso.
import QtWayland.Compositor.QtShell
WaylandCompositor {
property ListModel shellSurfaces: ListModel {}
QtShell {
onQtShellSurfaceCreated: {
shellSurfaces.append({shellSurface: qtShellSurface})
}
}
}Documentação do Signal
void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)
Este sinal é emitido quando um ` QtShellSurface ` é criado. O ` qtShellSurface ` fornecido é mais comumente usado para instanciar um ` ShellSurfaceItem`.
Observação: O manipulador correspondente é onQtShellSurfaceCreated.
void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Este sinal é emitido quando o cliente solicita que um ` QtShellSurface ` seja associado a ` surface`. Espera-se que o manipulador desse sinal crie o ` QtShellSurface ` para ` resource ` e o inicialize dentro do escopo da emissão do sinal. Se nenhum ` QtShellSurface ` for criado, um padrão será criado em seu lugar.
Observação: O manipulador correspondente é 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.