QWaylandWlShell Class
La classe QWaylandWlShell est une extension destinée aux interfaces utilisateur de type bureau. En savoir plus...
| En-tête : | #include <QWaylandWlShell> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake : | QT += waylandcompositor |
| En QML : | WlShell |
| Hérite de : | QWaylandShellTemplate |
Fonctions publiques
| QWaylandWlShell() | |
| QWaylandWlShell(QWaylandCompositor *compositor) |
Fonctions publiques réimplémentées
| virtual void | initialize() override |
Signaux
| void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
| void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
Membres publics statiques
| const struct wl_interface * | interface() |
Description détaillée
L'extension QWaylandWlShell permet d'associer une interface QWaylandWlShellSurface à une surface Wayland standard. Grâce à l'interface de surface shell, le client peut demander que la surface soit redimensionnée, déplacée, etc.
WlShell correspond à l’interface Wayland wl_shell.
Documentation des fonctions membres
QWaylandWlShell::QWaylandWlShell()
Crée un objet QWaylandWlShell.
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
Crée un objet `QWaylandWlShell` pour l'compositor` fournie.
[override virtual] void QWaylandWlShell::initialize()
Réimplémente : QWaylandCompositorExtension::initialize().
Initialise l'extension WlShell.
[static] const struct wl_interface *QWaylandWlShell::interface()
Renvoie l'interface Wayland correspondant à l'QWaylandWlShell.
[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
Ce signal est émis lorsque le client a créé un objet ` wl_shell_surface`. Un cas d'utilisation courant consiste à laisser le gestionnaire de ce signal instancier un `QWaylandShellSurfaceItem` ou un ` QWaylandQuickItem ` afin d'afficher des ` shellSurface ` dans une scène ` QtQuick `.
[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
Ce signal est émis lorsque le client a demandé qu’un « wl_shell_surface » soit associé à « surface ». Le gestionnaire de ce signal peut créer une surface shell pour « resource » et l’initialiser dans le cadre de l’émission du signal. Sinon, un « QWaylandWlShellSurface » sera créé automatiquement.
© 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.