QWaylandQuickShellSurfaceItem Class
Die Klasse „QWaylandQuickShellSurfaceItem“ stellt ein „ Qt Quick “-Element bereit, das ein „ QWaylandShellSurface “ darstellt. Mehr...
| Kopfzeile: | #include <QWaylandQuickShellSurfaceItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| In QML: | ShellSurfaceItem |
| Erbt von: | QWaylandQuickItem |
Eigenschaften
|
|
Öffentliche Funktionen
| 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 |
Signale
| void | autoCreatePopupItemsChanged() |
| void | moveItemChanged() |
| void | shellSurfaceChanged() |
| void | staysOnBottomChanged() |
| void | staysOnTopChanged() |
Detaillierte Beschreibung
Dieser Typ wird verwendet, um Oberflächen vom Typ „ xdg_shell “, „ ivi_application “, „ wl_shell “ oder „ qt_shell “ als Teil einer „ Qt Quick “-Szene darzustellen.
Siehe auch QWaylandQuickItem, QWaylandXdgSurface, QWaylandIviSurface und QWaylandWlShellSurface.
Dokumentation zu den Eigenschaften
autoCreatePopupItems : bool
Diese Eigenschaft legt fest, ob „QWaylandQuickShellSurfaceItems“ für Popups, die der von diesem Element verwalteten Shell-Oberfläche untergeordnet sind, automatisch erstellt werden sollen.
Zugriffsfunktionen:
| bool | autoCreatePopupItems() |
| void | setAutoCreatePopupItems(bool enabled) |
Notifier-Signal:
| void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
Diese Eigenschaft enthält das zu verschiebende Element für dieses „ QWaylandQuickShellSurfaceItem “. Dabei handelt es sich um das Element, das verschoben wird, wenn der Client anfordert, dass das „ QWaylandShellSurface “ verschoben, maximiert, in der Größe angepasst usw. wird. Diese Eigenschaft ist nützlich bei der Implementierung serverseitiger Dekorationen.
Zugriffsfunktionen:
| QQuickItem * | moveItem() const |
| void | setMoveItem(QQuickItem *moveItem) |
Notifier-Signal:
| void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
Diese Eigenschaft enthält die „ QWaylandShellSurface “, die von diesem „ QWaylandQuickShellSurfaceItem “ gerendert wird. Je nachdem, welches Shell-Protokoll verwendet wird, kann es sich dabei entweder um ein „QWaylandXdgSurfaceV5“, „ QWaylandWlShellSurface “ oder „ QWaylandIviSurface “ handeln.
Zugriffsfunktionen:
| QWaylandShellSurface * | shellSurface() const |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
Notifier-Signal:
| void | shellSurfaceChanged() |
staysOnBottom : bool
Dieses Element über anderen Wayland-Oberflächen anzeigen
Zugriffsfunktionen:
| bool | staysOnBottom() const |
| void | setStaysOnBottom(bool on) |
Notifier-Signal:
| void | staysOnBottomChanged() |
staysOnTop : bool
Dieses Element über anderen Wayland-Oberflächen anzeigen
Zugriffsfunktionen:
| bool | staysOnTop() const |
| void | setStaysOnTop(bool on) |
Notifier-Signal:
| void | staysOnTopChanged() |
Dokumentation der Mitgliedsfunktionen
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Erstellt ein `QWaylandQuickWlShellSurfaceItem` mit der angegebenen ` 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.