WlShell QML Type
Fornisce un'estensione per interfacce utente in stile desktop. Altro...
| Import Statement: | import QtWayland.Compositor.WlShell |
| In C++: | QWaylandWlShell |
Segnali
- void wlShellSurfaceCreated(WlShellSurface shellSurface)
- void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Descrizione dettagliata
L'estensione WlShell offre un modo per associare un ShellSurface a una normale superficie Wayland. Utilizzando l'interfaccia della superficie shell, il client può richiedere che la superficie venga ridimensionata, spostata e così via.
WlShell corrisponde all'interfaccia Wayland wl_shell.
Per fornire le funzionalità dell'estensione shell in un compositore, creare un'istanza del componente WlShell e aggiungerla all'elenco delle estensioni supportate dal compositore:
import QtWayland.Compositor.WlShell
WaylandCompositor {
WlShell {
// ...
}
}Documentazione sui segnali
void wlShellSurfaceCreated(WlShellSurface shellSurface)
Questo segnale viene emesso quando il client ha creato un wl_shell_surface. Un caso d'uso comune consiste nel far sì che il gestore di questo segnale istanzi un ShellSurfaceItem o un WaylandQuickItem per visualizzare shellSurface in una scena QtQuick.
Nota: il gestore corrispondente è onWlShellSurfaceCreated.
void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Questo segnale viene emesso quando il client ha richiesto che un wl_shell_surface venga associato a surface. Il gestore di questo segnale può creare una superficie shell per resource e inizializzarla nell'ambito dell'emissione del segnale. In caso contrario, verrà creato automaticamente un WlShellSurface.
Nota: il gestore corrispondente è 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.