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

  • drag : QWaylandDrag* const
  • keymap : QWaylandKeymap* const

Public Functions

QWaylandDrag *drag() const
QWaylandKeymap *keymap()

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.

ConstantValueDescription
QWaylandSeat::Pointer0x01The QWaylandSeat supports pointer input.
QWaylandSeat::Keyboard0x02The QWaylandSeat supports keyboard input.
QWaylandSeat::Touch0x04The QWaylandSeat supports touch input.
QWaylandSeat::DefaultCapabilitiesPointer | Keyboard | TouchThe 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()