QWaylandQuickShellSurfaceItem Class
La clase `QWaylandQuickShellSurfaceItem` proporciona un elemento ` Qt Quick ` que representa un ` QWaylandShellSurface`. Más información...
| Encabezado: | #include <QWaylandQuickShellSurfaceItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| En QML: | ShellSurfaceItem |
| Heredan de: | 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
Este tipo se utiliza para renderizar superficies de tipo « xdg_shell », « ivi_application », « wl_shell » o « qt_shell » como parte de una escena de « Qt Quick ».
Véase también QWaylandQuickItem, QWaylandXdgSurface, QWaylandIviSurface y QWaylandWlShellSurface.
Documentación de propiedades
autoCreatePopupItems : bool
Esta propiedad determina si deben crearse automáticamente los elementos «QWaylandQuickShellSurfaceItems» para las ventanas emergentes subordinadas a la superficie del shell gestionada por este elemento.
Funciones de acceso:
| bool | autoCreatePopupItems() |
| void | setAutoCreatePopupItems(bool enabled) |
Señal de notificador:
| void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
Esta propiedad contiene el elemento de desplazamiento correspondiente a este QWaylandQuickShellSurfaceItem. Se trata del elemento que se desplazará cuando los clientes soliciten que se desplace, se maximice, se redimensione, etc., el QWaylandShellSurface. Esta propiedad resulta útil a la hora de implementar 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 la superficie « QWaylandShellSurface » generada por este « QWaylandQuickShellSurfaceItem ». Puede ser un «QWaylandXdgSurfaceV5», « QWaylandWlShellSurface » o « QWaylandIviSurface », dependiendo del protocolo de shell que se esté utilizando.
Funciones de acceso:
| QWaylandShellSurface * | shellSurface() const |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
Señal de notificador:
| void | shellSurfaceChanged() |
staysOnBottom : bool
Mantener este elemento por encima de otras superficies de Wayland
Funciones de acceso:
| bool | staysOnBottom() const |
| void | setStaysOnBottom(bool on) |
Señal de notificación:
| void | staysOnBottomChanged() |
staysOnTop : bool
Mantener este elemento por encima de otras superficies de Wayland
Funciones de acceso:
| bool | staysOnTop() const |
| void | setStaysOnTop(bool on) |
Señal de notificador:
| void | staysOnTopChanged() |
Documentación de funciones de miembro
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Crea un objeto `QWaylandQuickWlShellSurfaceItem` con el ` parent` indicado.
© 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.