QWaylandQuickShellSurfaceItem Class
La classe `QWaylandQuickShellSurfaceItem` fournit un élément « Qt Quick » qui représente un élément « QWaylandShellSurface ». En savoir plus...
| En-tête : | #include <QWaylandQuickShellSurfaceItem> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake : | QT += waylandcompositor |
| En QML : | ShellSurfaceItem |
| Hérite de : | QWaylandQuickItem |
Propriétés
|
|
Fonctions publiques
| 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 |
Signaux
| void | autoCreatePopupItemsChanged() |
| void | moveItemChanged() |
| void | shellSurfaceChanged() |
| void | staysOnBottomChanged() |
| void | staysOnTopChanged() |
Description détaillée
Ce type est utilisé pour afficher des surfaces de type xdg_shell, ivi_application, wl_shell ou qt_shell dans le cadre d’une scène Qt Quick.
Voir également QWaylandQuickItem, QWaylandXdgSurface, QWaylandIviSurface et QWaylandWlShellSurface.
Documentation sur les propriétés
autoCreatePopupItems : bool
Cette propriété détermine si les éléments `QWaylandQuickShellSurfaceItems` correspondant aux fenêtres contextuelles rattachées à la surface du shell gérée par cet élément doivent être créés automatiquement.
Fonctions d'accès :
| bool | autoCreatePopupItems() |
| void | setAutoCreatePopupItems(bool enabled) |
Signal de notification :
| void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
Cette propriété contient l'élément à déplacer pour cet QWaylandQuickShellSurfaceItem. Il s'agit de l'élément qui sera déplacé lorsque les clients demanderont le déplacement, l'agrandissement, le redimensionnement, etc. de l'QWaylandShellSurface. Cette propriété est utile lors de la mise en œuvre de décorations côté serveur.
Fonctions d'accès :
| QQuickItem * | moveItem() const |
| void | setMoveItem(QQuickItem *moveItem) |
Signal de notification :
| void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
Cette propriété contient l'QWaylandShellSurface e générée par cette QWaylandQuickShellSurfaceItem. Il peut s'agir soit d'un QWaylandXdgSurfaceV5, d'QWaylandWlShellSurface, soit d'QWaylandIviSurface, selon le protocole de shell utilisé.
Fonctions d'accès :
| QWaylandShellSurface * | shellSurface() const |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
Signal de notification :
| void | shellSurfaceChanged() |
staysOnBottom : bool
Afficher cet élément au-dessus des autres surfaces Wayland
Fonctions d'accès :
| bool | staysOnBottom() const |
| void | setStaysOnBottom(bool on) |
Signal de notification :
| void | staysOnBottomChanged() |
staysOnTop : bool
Afficher cet élément au-dessus des autres surfaces Wayland
Fonctions d'accès :
| bool | staysOnTop() const |
| void | setStaysOnTop(bool on) |
Signal de notification :
| void | staysOnTopChanged() |
Documentation des fonctions membres
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Crée un objet `QWaylandQuickWlShellSurfaceItem` à partir de l’ parent` fournie.
© 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.