QWaylandQuickShellSurfaceItem Class
La clase QWaylandQuickShellSurfaceItem proporciona un elemento Qt Quick que representa un QWaylandShellSurface. Más...
| Cabecera: | #include <QWaylandQuickShellSurfaceItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| En QML: | ShellSurfaceItem |
| Hereda: | QWaylandQuickItem |
Propiedades
|
|
Funciones 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 |
Señales
| void | autoCreatePopupItemsChanged() |
| void | moveItemChanged() |
| void | shellSurfaceChanged() |
| void | staysOnBottomChanged() |
| void | staysOnTopChanged() |
Descripción detallada
Esta clase se utiliza para renderizar superficies wl_shell, xdg_shell o ivi_application como parte de una escena Qt Quick. Maneja los movimientos y cambios de tamaño activados al hacer clic en las decoraciones de la ventana.
Ver también QWaylandQuickItem, QWaylandWlShellSurface, y QWaylandIviSurface.
Documentación de propiedades
autoCreatePopupItems : bool
Esta propiedad indica si se deben crear automáticamente QWaylandQuickShellSurfaceItems para los popups relacionados con la superficie del shell gestionada por este ítem.
Funciones de acceso:
| bool | autoCreatePopupItems() |
| void | setAutoCreatePopupItems(bool enabled) |
Señal del notificador:
| void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
Esta propiedad contiene el elemento a mover para este QWaylandQuickShellSurfaceItem. Este es el elemento que se moverá cuando los clientes soliciten a QWaylandShellSurface que se mueva, maximice, redimensione, etc. Esta propiedad es útil cuando se implementan decoraciones del lado del servidor.
Funciones de acceso:
| QQuickItem * | moveItem() const |
| void | setMoveItem(QQuickItem *moveItem) |
Señal de notificador:
| void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
Esta propiedad contiene el QWaylandShellSurface renderizado por este QWaylandQuickShellSurfaceItem. Puede ser un QWaylandXdgSurfaceV5, QWaylandWlShellSurface o QWaylandIviSurface dependiendo del protocolo shell que se esté utilizando.
Funciones de acceso:
| QWaylandShellSurface * | shellSurface() const |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
Señal de notificador:
| void | shellSurfaceChanged() |
staysOnBottom : bool
Mantenga este elemento por encima de otras superficies Wayland
Funciones de acceso:
| bool | staysOnBottom() const |
| void | setStaysOnBottom(bool on) |
Señal de notificador:
| void | staysOnBottomChanged() |
staysOnTop : bool
Mantenga este elemento por encima de otras superficies Wayland
Funciones de acceso:
| bool | staysOnTop() const |
| void | setStaysOnTop(bool on) |
Señal de notificador:
| void | staysOnTopChanged() |
Documentación de la función miembro
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Construye un QWaylandQuickWlShellSurfaceItem con la dirección parent.
© 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.