WaylandSeat QML Type
Provides access to keyboard, mouse, and touch input. More...
Import Statement: | import QtWayland.Compositor 1.14 |
Since: | Qt 5.8 |
Methods
- void sendKeyEvent(qtKey, bool pressed)
- void sendTouchCancelEvent(client)
- void sendTouchFrameEvent(client)
- void sendTouchPointMoved(surface, int id, point position)
- uint sendTouchPointPressed(surface, int id, point position)
- void sendTouchPointReleased(surface, int id, point position)
Detailed Description
The WaylandSeat type 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.
Method Documentation
void sendKeyEvent(qtKey, bool pressed) |
Sends a key press (if pressed is true
) or release (if pressed is false
) event of a key qtKey to the keyboard device.
This method was introduced in Qt 5.12.
void sendTouchCancelEvent(client) |
Sends a cancel event to the touch device of a client.
void sendTouchFrameEvent(client) |
Sends a frame event to the touch device of a client to indicate the end of a series of touch up, down, and motion events.
Sends a touch moved event for the touch point id on surface with position position.
Note: You need to send a touch frame event when you are done sending touch events.
Warning: This API should not be used in combination with forwarding of touch events using WaylandQuickItem::touchEventsEnabled, as it might lead to conflicting touch ids.
Returns the serial for the touch motion event.
Sends a touch pressed event for the touch point id on surface with position position.
Note: You need to send a touch frame event when you are done sending touch events.
Warning: This API should not be used in combination with forwarding of touch events using WaylandQuickItem::touchEventsEnabled, as it might lead to conflicting touch ids.
Returns the serial for the touch down event.
Sends a touch released event for the touch point id on surface with position position.
Note: You need to send a touch frame event when you are done sending touch events.
Warning: This API should not be used in combination with forwarding of touch events using WaylandQuickItem::touchEventsEnabled, as it might lead to conflicting touch ids.
Returns the serial for the touch up event.
© 2020 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.