IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Qt Quick Pointer Handlers

A module with a set of QML elements that handle events from pointing devices in a user interface.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

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.

 
Sélectionnez
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

Related Information

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+