Qt Quick Pointer Handlers
Qt Quick Pointer Handlers are a set of QML types used to handle events from touch, mouse, and stylus devices in a UI. In contrast to event-handling Items, such as MouseArea, Pointer Handlers require less memory and are intended to be used in greater numbers: one handler per type of interaction. Each Pointer Handler handles events on behalf of its parent
Item. One Item can have multiple Pointer Handlers.
The module is introduced in Qt 5.10.
Pointer Handlers
Getting Started
The QML types can be imported into your application using the following import statement in your .qml
file.
import Qt.labs.handlers 1.0
Key Features
Some of the key features are:
- Handle gestures such as tapping or dragging regardless which device it comes from
- Handle gestures from different classes of devices in different ways
- Each Item can have unlimited Handlers