QWaylandQuickShellSurfaceItem Class
La classe `QWaylandQuickShellSurfaceItem` fornisce un elemento ` Qt Quick ` che rappresenta un ` QWaylandShellSurface`. Per saperne di più...
| Intestazione: | #include <QWaylandQuickShellSurfaceItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| In QML: | ShellSurfaceItem |
| Eredita da: | QWaylandQuickItem |
Proprietà
|
|
Funzioni pubbliche
| 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 |
Segnali
| void | autoCreatePopupItemsChanged() |
| void | moveItemChanged() |
| void | shellSurfaceChanged() |
| void | staysOnBottomChanged() |
| void | staysOnTopChanged() |
Descrizione dettagliata
Questo tipo viene utilizzato per il rendering di superfici di tipo xdg_shell, ivi_application, wl_shell o qt_shell nell'ambito di una scena Qt Quick.
Vedi anche QWaylandQuickItem, QWaylandXdgSurface, QWaylandIviSurface e QWaylandWlShellSurface.
Documentazione delle proprietà
autoCreatePopupItems : bool
Questa proprietà determina se gli elementi QWaylandQuickShellSurfaceItems relativi ai popup associati alla superficie della shell gestita da questo elemento debbano essere creati automaticamente.
Funzioni di accesso:
| bool | autoCreatePopupItems() |
| void | setAutoCreatePopupItems(bool enabled) |
Segnale Notifier:
| void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
Questa proprietà contiene l'elemento da spostare per questo QWaylandQuickShellSurfaceItem. Si tratta dell'elemento che verrà spostato quando i client richiedono che l'QWaylandShellSurface venga spostato, ingrandito, ridimensionato ecc. Questa proprietà è utile quando si implementano decorazioni lato server.
Funzioni di accesso:
| QQuickItem * | moveItem() const |
| void | setMoveItem(QQuickItem *moveItem) |
Segnale di notifica:
| void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
Questa proprietà contiene l'QWaylandShellSurface e renderizzata da questo QWaylandQuickShellSurfaceItem. Può essere un QWaylandXdgSurfaceV5, un QWaylandWlShellSurface o un QWaylandIviSurface, a seconda del protocollo shell in uso.
Funzioni di accesso:
| QWaylandShellSurface * | shellSurface() const |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
Segnale Notifier:
| void | shellSurfaceChanged() |
staysOnBottom : bool
Mantieni questo elemento sopra le altre superfici Wayland
Funzioni di accesso:
| bool | staysOnBottom() const |
| void | setStaysOnBottom(bool on) |
Segnale di notifica:
| void | staysOnBottomChanged() |
staysOnTop : bool
Mantieni questo elemento sopra le altre superfici Wayland
Funzioni di accesso:
| bool | staysOnTop() const |
| void | setStaysOnTop(bool on) |
Segnale Notifier:
| void | staysOnTopChanged() |
Documentazione delle funzioni membro
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Crea un oggetto `QWaylandQuickWlShellSurfaceItem` con l'parent` specificato.
© 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.