QPanGesture Class ReferenceThe QPanGesture class describes a panning gesture made by the user. More... #include <QPanGesture> Inherits: QGesture. This class was introduced in Qt 4.6. Properties
Public Functions
Additional Inherited Members
Detailed DescriptionThe QPanGesture class describes a panning gesture made by the user. For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures Programming document. See also QPinchGesture and QSwipeGesture. Property Documentation
|
qreal | acceleration () const |
void | setAcceleration ( qreal value ) |
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:
QPointF | delta () const |
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:
QPointF | lastOffset () const |
void | setLastOffset ( const QPointF & value ) |
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:
QPointF | offset () const |
void | setOffset ( const QPointF & value ) |
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.