QPanGesture class describes a panning gesture made by the user. 更多...
头: | #include <QPanGesture> |
qmake: | QT += widgets |
Since: | Qt 4.6 |
继承: | QGesture |
~QPanGesture () | |
qreal | acceleration () const |
QPointF | delta () const |
QPointF | lastOffset () const |
QPointF | offset () const |
void | setAcceleration (qreal value ) |
void | setLastOffset (const QPointF & value ) |
void | setOffset (const QPointF & value ) |
QPanGesture class describes a panning gesture made by the user.
对于 Qt 中手势处理的概述和在应用程序中使用手势的信息,见 在 Widget 和图形视图中的手势 文档。
另请参阅 QPinchGesture and QSwipeGesture .
This property holds the acceleration in the motion of the touch point for this gesture
访问函数:
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 () 和 lastOffset ().
访问函数:
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.
访问函数:
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.
访问函数:
QPointF | offset () const |
void | setOffset (const QPointF & value ) |
析构函数。