QWaylandWlShell Class
Die Klasse QWaylandWlShell ist eine Erweiterung für Benutzeroberflächen im Desktop-Stil. Mehr...
Kopfzeile: | #include <QWaylandWlShell> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
In QML: | WlShell |
Inherits: | QWaylandShellTemplate |
Öffentliche Funktionen
QWaylandWlShell() | |
QWaylandWlShell(QWaylandCompositor *compositor) |
Reimplementierte öffentliche Funktionen
virtual void | initialize() override |
Signale
void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
Statische öffentliche Mitglieder
const struct wl_interface * | interface() |
Detaillierte Beschreibung
Die QWaylandWlShell-Erweiterung bietet eine Möglichkeit, eine QWaylandWlShellSurface mit einer regulären Wayland-Oberfläche zu verknüpfen. Mit Hilfe der Shell-Oberflächenschnittstelle kann der Client anfordern, dass die Oberfläche in der Größe verändert, verschoben usw. wird.
WlShell entspricht der Wayland-Schnittstelle wl_shell
.
Dokumentation der Mitgliedsfunktionen
QWaylandWlShell::QWaylandWlShell()
Konstruiert ein QWaylandWlShell-Objekt.
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
Konstruiert ein QWaylandWlShell-Objekt für die angegebene compositor.
[override virtual]
void QWaylandWlShell::initialize()
Reimplements: 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 ausgegeben, wenn der Client ein wl_shell_surface
erstellt hat. Ein üblicher Anwendungsfall ist es, den Handler dieses Signals ein QWaylandShellSurfaceItem oder QWaylandQuickItem instanziieren zu lassen, um shellSurface in einer QtQuick -Szene darzustellen.
[signal]
void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
Dieses Signal wird ausgegeben, wenn der Client eine wl_shell_surface
angefordert hat, die mit surface verknüpft werden soll. Der Handler für dieses Signal kann eine Shell-Oberfläche für resource erstellen und sie im Rahmen der Signalausgabe initialisieren. Andernfalls wird automatisch eine QWaylandWlShellSurface erstellt.
© 2025 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.