QWaylandShell Class
Classe abstraite permettant de mettre en œuvre un shell Wayland. En savoir plus…
| En-tête : | #include <QWaylandShell> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake : | QT += waylandcompositor |
| En QML : | Shell |
| Hérite de : | QWaylandCompositorExtension |
Types publics
| enum | FocusPolicy { AutomaticFocus, ManualFocus } |
Propriétés
- focusPolicy : FocusPolicy
Fonctions publiques
| QWaylandShell::FocusPolicy | focusPolicy() const |
| void | setFocusPolicy(QWaylandShell::FocusPolicy focusPolicy) |
Signaux
| void | focusPolicyChanged() |
Documentation sur les types de membres
enum QWaylandShell::FocusPolicy
Ce type d'énumération sert à définir la politique de mise en avant des surfaces du shell.
| Constante | Valeur | Description |
|---|---|---|
QWaylandShell::AutomaticFocus | 0 | Les surfaces de shell obtiendront automatiquement le focus clavier lors de leur création. |
QWaylandShell::ManualFocus | 1 | C'est le compositeur qui décidera si les surfaces du shell doivent ou non recevoir le focus clavier. |
Documentation de la propriété
focusPolicy : FocusPolicy
Cette propriété définit la politique de focus de l’ QWaylandShell.
Fonctions d'accès :
| QWaylandShell::FocusPolicy | focusPolicy() const |
| void | setFocusPolicy(QWaylandShell::FocusPolicy focusPolicy) |
Signal de notification :
| void | focusPolicyChanged() |
© 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.