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

QPanGesture Class

The QPanGesture class describes a panning gesture made by the user.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPanGesture Class

  • Header: QPanGesture

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Widgets)

    target_link_libraries(mytarget PRIVATE Qt6::Widgets)

  • qmake: QT += widgets

  • Inherits: QGesture

  • Group: QPanGesture is part of gestures

Detailed Description

Image non disponible

For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures in Widgets and Graphics View document.

See Also

Property Documentation

 

acceleration : qreal

This property holds the acceleration in the motion of the touch point for this gesture

Access functions:

  • qreal acceleration() const

  • void setAcceleration(qreal value)

[read-only] delta : const QPointF

This property holds the offset from the previous input position to the current input

This is essentially the same as the difference between offset() and lastOffset().

Access functions:

  • delta() const

lastOffset : QPointF

This property holds the last offset recorded for this gesture

The last offset contains the change in position of the user's input as reported in the offset property when a previous gesture event was delivered for this gesture.

If no previous event was delivered with information about this gesture (i.e., this gesture object contains information about the first movement in the gesture) then this property contains a zero size.

Access functions:

  • lastOffset() const

  • void setLastOffset(const &value)

offset : QPointF

This property holds the total offset from the first input position to the current input position

The offset measures the total change in position of the user's input covered by the gesture on the input device.

Access functions:

  • offset() const

  • void setOffset(const &value)

Member Function Documentation

 

[virtual] QPanGesture::~QPanGesture()

Destructor.

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