QWaylandQuickShellSurfaceItem Class
Die Klasse QWaylandQuickShellSurfaceItem stellt ein Qt Quick Element zur Verfügung, 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 |
Vererbt: | 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
Diese Klasse wird verwendet, um wl_shell
, xdg_shell
oder ivi_application
Oberflächen als Teil einer Qt Quick Szene zu rendern. Sie behandelt das Verschieben und die Größenänderung, die durch Klicken auf die Fensterdekorationen ausgelöst werden.
Siehe auch QWaylandQuickItem, QWaylandWlShellSurface, und QWaylandIviSurface.
Dokumentation der Eigenschaften
autoCreatePopupItems : bool
Diese Eigenschaft legt fest, ob QWaylandQuickShellSurfaceItems für Popups, die der von diesem Element verwalteten Shell-Oberfläche übergeordnet 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 diese QWaylandQuickShellSurfaceItem. Es handelt sich um das Element, das verschoben wird, wenn die Clients anfordern, dass QWaylandShellSurface verschoben, maximiert, in der Größe verändert usw. wird. Diese Eigenschaft ist nützlich bei der Implementierung serverseitiger Dekorationen.
Zugriffsfunktionen:
QQuickItem * | moveItem() const |
void | setMoveItem(QQuickItem *moveItem) |
Benachrichtigungssignal:
void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
Diese Eigenschaft enthält die QWaylandShellSurface, die von dieser QWaylandQuickShellSurfaceItem gerendert wird. Es kann entweder ein QWaylandXdgSurfaceV5, QWaylandWlShellSurface oder QWaylandIviSurface sein, je nachdem welches Shell-Protokoll verwendet wird.
Zugriffsfunktionen:
QWaylandShellSurface * | shellSurface() const |
void | setShellSurface(QWaylandShellSurface *shellSurface) |
Benachrichtigungssignal:
void | shellSurfaceChanged() |
staysOnBottom : bool
Halten Sie diesen Artikel über andere Wayland-Oberflächen
Zugriffsfunktionen:
bool | staysOnBottom() const |
void | setStaysOnBottom(bool on) |
Benachrichtigungssignal:
void | staysOnBottomChanged() |
staysOnTop : bool
Halten Sie diesen Artikel über andere Wayland-Oberflächen
Zugriffsfunktionen:
bool | staysOnTop() const |
void | setStaysOnTop(bool on) |
Benachrichtigungssignal:
void | staysOnTopChanged() |
Member Function Dokumentation
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Konstruiert ein QWaylandQuickWlShellSurfaceItem mit der angegebenen parent.
© 2025 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.