QWaylandWlShell Class
La classe QWaylandWlShell è un'estensione per interfacce utente in stile desktop. Per saperne di più...
| Intestazione: | #include <QWaylandWlShell> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| In QML: | WlShell |
| Eredita da: | QWaylandShellTemplate |
Funzioni pubbliche
| QWaylandWlShell() | |
| QWaylandWlShell(QWaylandCompositor *compositor) |
Funzioni pubbliche reimplementate
| virtual void | initialize() override |
Segnali
| void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
| void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
Membri pubblici statici
| const struct wl_interface * | interface() |
Descrizione dettagliata
L'estensione QWaylandWlShell offre un modo per associare un QWaylandWlShellSurface a una superficie Wayland standard. 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.
Documentazione delle funzioni membro
QWaylandWlShell::QWaylandWlShell()
Crea un oggetto QWaylandWlShell.
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
Crea un oggetto QWaylandWlShell per l'compositor fornito.
[override virtual] void QWaylandWlShell::initialize()
Reimplementa: QWaylandCompositorExtension::initialize().
Inizializza l'estensione WlShell.
[static] const struct wl_interface *QWaylandWlShell::interface()
Restituisce l'interfaccia Wayland per l'QWaylandWlShell.
[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
Questo segnale viene emesso quando il client ha creato un oggetto ` wl_shell_surface`. Un caso d'uso comune consiste nel consentire al gestore di questo segnale di istanziare un oggetto `QWaylandShellSurfaceItem` o ` QWaylandQuickItem ` per visualizzare ` shellSurface ` in una scena ` QtQuick `.
[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
Questo segnale viene emesso quando il client ha richiesto che un'istanza di ` wl_shell_surface ` venga associata 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à creata automaticamente un'istanza di ` QWaylandWlShellSurface `.
© 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.