Sur cette page

QWaylandWlShell Class

La classe QWaylandWlShell est une extension pour les interfaces utilisateur de type bureau. Plus d'informations...

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 : 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 page QWaylandWlShellSurface à une surface Wayland ordinaire. En utilisant l'interface de la 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()

Construit un objet QWaylandWlShell.

QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)

Construit un objet QWaylandWlShell pour l'adresse compositor fournie.

[override virtual] void QWaylandWlShell::initialize()

Réimplémente : QWaylandCompositorExtension::initialize().

Initialise l'extension WlShell.

[static] const struct wl_interface *QWaylandWlShell::interface()

Retourne l'interface Wayland pour le site QWaylandWlShell.

[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)

Ce signal est émis lorsque le client a créé un wl_shell_surface. Un cas d'utilisation courant consiste à permettre au gestionnaire de ce signal d'instancier un élément QWaylandShellSurfaceItem ou QWaylandQuickItem pour afficher shellSurface dans une scène QtQuick.

[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)

Ce signal est émis lorsque le client a demandé à ce que 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. Dans le cas contraire, 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.