QWaylandQuickShellSurfaceItem Class
A classe `QWaylandQuickShellSurfaceItem` fornece um item “ Qt Quick ” que representa um ` QWaylandShellSurface`. Mais...
| Cabeçalho: | #include <QWaylandQuickShellSurfaceItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| No QML: | ShellSurfaceItem |
| Herdado de: | QWaylandQuickItem |
Propriedades
|
|
Funções públicas
| QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr) | |
| bool | autoCreatePopupItems() |
| QQuickItem * | moveItem() const |
| void | setAutoCreatePopupItems(bool enabled) |
| void | setMoveItem(QQuickItem *moveItem) |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
| void | setStaysOnBottom(bool on) |
| void | setStaysOnTop(bool on) |
| QWaylandShellSurface * | shellSurface() const |
| bool | staysOnBottom() const |
| bool | staysOnTop() const |
Sinais
| void | autoCreatePopupItemsChanged() |
| void | moveItemChanged() |
| void | shellSurfaceChanged() |
| void | staysOnBottomChanged() |
| void | staysOnTopChanged() |
Descrição detalhada
Este tipo é usado para renderizar superfícies do tipo xdg_shell, ivi_application, wl_shell ou qt_shell como parte de uma cena do tipo Qt Quick.
Veja também QWaylandQuickItem, QWaylandXdgSurface, QWaylandIviSurface e QWaylandWlShellSurface.
Documentação de propriedades
autoCreatePopupItems : bool
Esta propriedade determina se os itens `QWaylandQuickShellSurfaceItems` para janelas pop-up ligadas à superfície do shell gerenciada por este item devem ser criados automaticamente.
Funções de acesso:
| bool | autoCreatePopupItems() |
| void | setAutoCreatePopupItems(bool enabled) |
Sinal do Notifier:
| void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
Esta propriedade armazena o item de movimentação para este QWaylandQuickShellSurfaceItem. Esse é o item que será movido quando os clientes solicitarem que o QWaylandShellSurface seja movido, maximizado, redimensionado etc. Essa propriedade é útil na implementação de decorações no lado do servidor.
Funções de acesso:
| QQuickItem * | moveItem() const |
| void | setMoveItem(QQuickItem *moveItem) |
Sinal do Notifier:
| void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
Esta propriedade contém a ` QWaylandShellSurface ` renderizada por este ` QWaylandQuickShellSurfaceItem`. Ela pode ser uma `QWaylandXdgSurfaceV5`, ` QWaylandWlShellSurface ` ou ` QWaylandIviSurface `, dependendo de qual protocolo de shell estiver em uso.
Funções de acesso:
| QWaylandShellSurface * | shellSurface() const |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
Sinal do Notifier:
| void | shellSurfaceChanged() |
staysOnBottom : bool
Manter este item acima de outras superfícies Wayland
Funções de acesso:
| bool | staysOnBottom() const |
| void | setStaysOnBottom(bool on) |
Sinal do Notifier:
| void | staysOnBottomChanged() |
staysOnTop : bool
Manter este item acima de outras superfícies Wayland
Funções de acesso:
| bool | staysOnTop() const |
| void | setStaysOnTop(bool on) |
Sinal de notificação:
| void | staysOnTopChanged() |
Documentação das funções de membro
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Cria um objeto `QWaylandQuickWlShellSurfaceItem` com o ` parent` fornecido.
© 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.