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 ) |