QtShell QML Type
Fornisce un'estensione della shell per le applicazioni Qt in esecuzione su un Qt Wayland Compositor. Altro...
| Import Statement: | import QtWayland.Compositor.QtShell |
| Since: | Qt 6.3 |
Segnali
- void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)
- void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Descrizione dettagliata
L'estensione QtShell offre un modo per associare un'QtShellSurface e a una normale superficie Wayland. L'estensione QtShell è stata realizzata per supportare le funzionalità di gestione delle finestre supportate da Qt. Può essere adatta su una piattaforma in cui sia il compositore che le applicazioni client sono scritti con Qt e in cui si ritiene che le applicazioni non abusino di funzionalità quali il posizionamento manuale delle finestre e il "porta in primo piano".
Per altri casi d’uso, si consiglia di utilizzare invece IviApplication o XdgShell.
import QtWayland.Compositor.QtShell
WaylandCompositor {
property ListModel shellSurfaces: ListModel {}
QtShell {
onQtShellSurfaceCreated: {
shellSurfaces.append({shellSurface: qtShellSurface})
}
}
}Documentazione sui segnali
void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)
Questo segnale viene emesso quando viene creato un oggetto ` QtShellSurface `. L'oggetto ` qtShellSurface ` fornito viene solitamente utilizzato per istanziare un oggetto ` ShellSurfaceItem`.
Nota: il gestore corrispondente è onQtShellSurfaceCreated.
void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
Questo segnale viene emesso quando il client ha richiesto che un QtShellSurface venga associato a surface. L’handler di questo segnale deve creare l’ QtShellSurface per resource e inizializzarlo nell’ambito dell’emissione del segnale. Se non viene creato alcun QtShellSurface, ne verrà creato uno predefinito.
Nota: il gestore corrispondente è 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.