QWaylandShell Class
Abstract class for implementing a wayland shell. More...
| Header: | #include <QWaylandShell> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| In QML: | Shell |
| Inherits: | QWaylandCompositorExtension |
Public Types
| enum | FocusPolicy { AutomaticFocus, ManualFocus } |
Properties
- focusPolicy : FocusPolicy
Public Functions
| QWaylandShell::FocusPolicy | focusPolicy() const |
| void | setFocusPolicy(QWaylandShell::FocusPolicy focusPolicy) |
Signals
| void | focusPolicyChanged() |
Detailed Description
Member Type Documentation
enum QWaylandShell::FocusPolicy
This enum type is used to specify the focus policy for shell surfaces.
| Constant | Value | Description |
|---|---|---|
QWaylandShell::AutomaticFocus | 0 | Shell surfaces will automatically get keyboard focus when they are created. |
QWaylandShell::ManualFocus | 1 | The compositor will decide whether shell surfaces should get keyboard focus or not. |
Property Documentation
focusPolicy : FocusPolicy
This property holds the focus policy of the QWaylandShell.
Access functions:
| QWaylandShell::FocusPolicy | focusPolicy() const |
| void | setFocusPolicy(QWaylandShell::FocusPolicy focusPolicy) |
Notifier signal:
| void | focusPolicyChanged() |