QWaylandWlShell Class
Die Klasse „QWaylandWlShell“ ist eine Erweiterung für Benutzeroberflächen im Desktop-Stil. Mehr...
| Header: | #include <QWaylandWlShell> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| In QML: | WlShell |
| Erbt von: | QWaylandShellTemplate |
Öffentliche Funktionen
| QWaylandWlShell() | |
| QWaylandWlShell(QWaylandCompositor *compositor) |
Neu implementierte öffentliche Funktionen
| virtual void | initialize() override |
Signale
| void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
| void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
Statische öffentliche Elemente
| const struct wl_interface * | interface() |
Ausführliche Beschreibung
Die Erweiterung „QWaylandWlShell“ bietet die Möglichkeit, eine „ QWaylandWlShellSurface “ mit einer regulären Wayland-Oberfläche zu verknüpfen. Über die Shell-Oberflächen-Schnittstelle kann der Client anfordern, dass die Oberfläche in der Größe angepasst, verschoben usw. wird.
WlShell entspricht der Wayland-Schnittstelle „ wl_shell “.
Dokumentation der Mitgliedsfunktionen
QWaylandWlShell::QWaylandWlShell()
Erstellt ein QWaylandWlShell-Objekt.
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
Erstellt ein QWaylandWlShell-Objekt für die angegebene „ compositor “.
[override virtual] void QWaylandWlShell::initialize()
Implementiert: QWaylandCompositorExtension::initialize().
Initialisiert die Erweiterung „ WlShell “.
[static] const struct wl_interface *QWaylandWlShell::interface()
Gibt die Wayland-Schnittstelle für die „ QWaylandWlShell “ zurück.
[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
Dieses Signal wird ausgelöst, wenn der Client ein ` wl_shell_surface` erstellt hat. Ein häufiger Anwendungsfall besteht darin, den Handler dieses Signals ein `QWaylandShellSurfaceItem` oder ` QWaylandQuickItem ` instanziieren zu lassen, um ` shellSurface ` in einer ` QtQuick `-Szene anzuzeigen.
[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
Dieses Signal wird ausgelöst, wenn der Client die Zuordnung eines „ wl_shell_surface “ zu „ surface “ angefordert hat. Der Handler für dieses Signal kann eine Shell-Oberfläche für „ resource “ erstellen und diese im Rahmen der Signalauslösung initialisieren. Andernfalls wird automatisch ein „ QWaylandWlShellSurface “ erstellt.
© 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.