QWaylandQuickShellSurfaceItem Class
La classe QWaylandQuickShellSurfaceItem fournit un élément Qt Quick qui représente un QWaylandShellSurface. 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éritages : | 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
Cette classe est utilisée pour rendre les surfaces wl_shell, xdg_shell ou ivi_application dans le cadre d'une scène Qt Quick. Elle gère le déplacement et le redimensionnement déclenchés par un clic sur les décorations de la fenêtre.
Voir également QWaylandQuickItem, QWaylandWlShellSurface, et QWaylandIviSurface.
Documentation sur les propriétés
autoCreatePopupItems : bool
Cette propriété indique si les éléments QWaylandQuickShellSurfaceItems des fenêtres contextuelles liées à la surface de la coquille gérée par cet élément doivent être automatiquement créés.
Fonctions d'accès :
| bool | autoCreatePopupItems() |
| void | setAutoCreatePopupItems(bool enabled) |
Signal du notificateur :
| void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
Cette propriété contient l'élément à déplacer pour cette page QWaylandQuickShellSurfaceItem. Il s'agit de l'élément qui sera déplacé lorsque les clients demanderont à QWaylandShellSurface d'être déplacé, agrandi, redimensionné, etc. 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 le QWaylandShellSurface rendu par ce QWaylandQuickShellSurfaceItem. Il peut s'agir d'une QWaylandXdgSurfaceV5, d'une QWaylandWlShellSurface ou d'une QWaylandIviSurface en fonction du protocole shell utilisé.
Fonctions d'accès :
| QWaylandShellSurface * | shellSurface() const |
| void | setShellSurface(QWaylandShellSurface *shellSurface) |
Signal de notification :
| void | shellSurfaceChanged() |
staysOnBottom : bool
Conserver cet article au-dessus des autres surfaces Wayland
Fonctions d'accès :
| bool | staysOnBottom() const |
| void | setStaysOnBottom(bool on) |
Signal de notification :
| void | staysOnBottomChanged() |
staysOnTop : bool
Conserver cet article au-dessus des autres surfaces Wayland
Fonctions d'accès :
| bool | staysOnTop() const |
| void | setStaysOnTop(bool on) |
Signal du notificateur :
| void | staysOnTopChanged() |
Documentation des fonctions membres
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Construit un élément QWaylandQuickWlShellSurfaceItem avec l'adresse 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.