QWaylandWlShell Class
A classe QWaylandWlShell é uma extensão para interfaces de usuário no estilo desktop. Mais...
| Cabeçalho: | #include <QWaylandWlShell> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| No QML: | WlShell |
| Herdado de: | QWaylandShellTemplate |
Funções públicas
| QWaylandWlShell() | |
| QWaylandWlShell(QWaylandCompositor *compositor) |
Funções públicas reimplementadas
| virtual void | initialize() override |
Sinais
| void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
| void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
Membros públicos estáticos
| const struct wl_interface * | interface() |
Descrição detalhada
A extensão QWaylandWlShell oferece uma maneira de associar um ` QWaylandWlShellSurface ` a uma superfície Wayland comum. Usando a interface da superfície do shell, o cliente pode solicitar que a superfície seja redimensionada, movida e assim por diante.
WlShell corresponde à interface Wayland wl_shell.
Documentação das funções-membro
QWaylandWlShell::QWaylandWlShell()
Cria um objeto QWaylandWlShell.
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
Cria um objeto QWaylandWlShell para o ` compositor` fornecido.
[override virtual] void QWaylandWlShell::initialize()
Reimplementa: QWaylandCompositorExtension::initialize().
Inicializa a extensão WlShell.
[static] const struct wl_interface *QWaylandWlShell::interface()
Retorna a interface Wayland para o ` QWaylandWlShell`.
[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
Esse sinal é emitido quando o cliente cria um ` wl_shell_surface`. Um caso de uso comum é permitir que o manipulador desse sinal instancie um `QWaylandShellSurfaceItem` ou um ` QWaylandQuickItem ` para exibir ` shellSurface ` em uma cena ` QtQuick `.
[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
Esse sinal é emitido quando o cliente solicita que um ` wl_shell_surface ` seja associado a ` surface`. O manipulador desse sinal pode criar uma superfície de shell para ` resource ` e inicializá-la dentro do escopo da emissão do sinal. Caso contrário, um ` QWaylandWlShellSurface ` será criado automaticamente.
© 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.