QWaylandWlShell Class
La clase QWaylandWlShell es una extensión para interfaces de usuario de tipo escritorio. Más información...
| Encabezado: | #include <QWaylandWlShell> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| En QML: | WlShell |
| Heredan de: | QWaylandShellTemplate |
Funciones públicas
| QWaylandWlShell() | |
| QWaylandWlShell(QWaylandCompositor *compositor) |
Funciones públicas reimplementadas
| virtual void | initialize() override |
Señales
| void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
| void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
Miembros públicos estáticos
| const struct wl_interface * | interface() |
Descripción detallada
La extensión QWaylandWlShell permite asociar una interfaz de superficie de shell ( QWaylandWlShellSurface ) a una superficie Wayland normal. Mediante la interfaz de superficie de shell, el cliente puede solicitar que se cambie el tamaño de la superficie, se mueva, etc.
WlShell corresponde a la interfaz de Wayland wl_shell.
Documentación de las funciones de miembro
QWaylandWlShell::QWaylandWlShell()
Crea un objeto QWaylandWlShell.
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
Crea un objeto QWaylandWlShell para el ` compositor` proporcionado.
[override virtual] void QWaylandWlShell::initialize()
Reimplementa: QWaylandCompositorExtension::initialize().
Inicializa la extensión WlShell.
[static] const struct wl_interface *QWaylandWlShell::interface()
Devuelve la interfaz de Wayland para el ` QWaylandWlShell`.
[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
Esta señal se emite cuando el cliente ha creado un ` wl_shell_surface`. Un caso de uso habitual es permitir que el controlador de esta señal instancie un `QWaylandShellSurfaceItem` o un ` QWaylandQuickItem ` para mostrar ` shellSurface ` en una escena ` QtQuick `.
[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
Esta señal se emite cuando el cliente ha solicitado que se asocie un ` wl_shell_surface ` con ` surface`. El controlador de esta señal puede crear una superficie de shell para ` resource ` e inicializarla dentro del ámbito de la emisión de la señal. De lo contrario, se creará automáticamente un ` 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.