QWaylandSeat Class
The QWaylandSeat class provides access to keyboard, mouse, and touch input. More...
| Header: | #include <QWaylandSeat> |
| qmake: | QT += waylandcompositor |
| Since: | Qt 5.8 |
| Instantiated By: | WaylandSeat |
| Inherits: | QWaylandObject |
This class was introduced in Qt 5.8.
Public Types
| enum | CapabilityFlag { Pointer, Keyboard, Touch, DefaultCapabilities } |
Properties
Public Functions
Detailed Description
The QWaylandSeat provides access to different types of user input and maintains a keyboard focus and a mouse pointer. It corresponds to the wl_seat interface in the Wayland protocol.
Member Type Documentation
enum QWaylandSeat::CapabilityFlag
This enum type describes the capabilities of a QWaylandSeat.
| Constant | Value | Description |
|---|---|---|
QWaylandSeat::Pointer | 0x01 | The QWaylandSeat supports pointer input. |
QWaylandSeat::Keyboard | 0x02 | The QWaylandSeat supports keyboard input. |
QWaylandSeat::Touch | 0x04 | The QWaylandSeat supports touch input. |
QWaylandSeat::DefaultCapabilities | Pointer | Keyboard | Touch | The QWaylandSeat has the default capabilities. |
Property Documentation
drag : QWaylandDrag* const
This property holds the drag and drop operations and sends signals when they start and end. The property stores details like what image should be under the mouse cursor when the user drags it.
Access functions:
| QWaylandDrag * | drag() const |
keymap : QWaylandKeymap* const
This property holds the keymap object.
A keymap provides a way to translate actual key scan codes into a meaningful value. For example, if you use a keymap with a Norwegian layout, the key to the right of the letter L produces an Ø.
Keymaps can also be used to customize key functions, such as to specify whether Control and CAPS lock should be swapped, and so on.
Access functions:
| QWaylandKeymap * | keymap() |