The QPanGesture 类描述由用户做出的平移手势。 更多...
| 头: | #include <QPanGesture> |
| Since: | Qt 4.6 |
| 继承: | QGesture |
| 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 ) |
The QPanGesture 类描述由用户做出的平移手势。
Qt 中手势处理的概述和在应用程序中使用手势的有关信息,见 Gestures Programming 文档。
另请参阅 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.
这本质上是一样的差异介于 offset () 和 lastOffset ().
访问函数:
| QPointF | delta () const |
This property holds the last offset recorded for this gesture.
最后偏移包含的用户输入位置的变化的报告在 offset 特性,当该手势交付先前手势事件时。
若先前没有交付具有此手势有关信息的事件 (即:此手势对象包含手势第一次移动的有关信息),则此特性包含 0 大小。
访问函数:
| QPointF | lastOffset () const |
| void | setLastOffset (const QPointF & value ) |
This property holds the total offset from the first input position to the current input position.
偏移度量输入设备手势覆盖的用户输入位置的总变化。
访问函数:
| QPointF | offset () const |
| void | setOffset (const QPointF & value ) |