En esta página

QWaylandWlShell Class

La clase QWaylandWlShell es una extensión para interfaces de usuario de estilo escritorio. Más...

Cabecera: #include <QWaylandWlShell>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
En QML: WlShell
Hereda 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 proporciona una forma de asociar un QWaylandWlShellSurface con una superficie Wayland normal. Usando la interfaz de superficie shell, el cliente puede solicitar que la superficie sea redimensionada, movida, etc.

WlShell corresponde a la interfaz de Wayland wl_shell.

Documentación de las funciones miembro

QWaylandWlShell::QWaylandWlShell()

Construye un objeto QWaylandWlShell.

QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)

Construye un objeto QWaylandWlShell para la dirección compositor.

[override virtual] void QWaylandWlShell::initialize()

Reimplementa: QWaylandCompositorExtension::initialize().

Inicializa la extensión WlShell.

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

Devuelve la interfaz Wayland para 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 común es dejar que el manejador de esta señal instancie un QWaylandShellSurfaceItem o 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 a surface. El manejador de esta señal puede crear una superficie shell para resource e inicializarla dentro del ámbito de emisión de la señal. En caso contrario, se creará automáticamente una 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.