QPanGesture 類

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 .

特性文檔編製

acceleration : qreal

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

訪問函數:

qreal acceleration () const
void setAcceleration (qreal value )

delta : const QPointF

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

這本質上是一樣的差異介於 offset () 和 lastOffset ().

訪問函數:

QPointF delta () const

lastOffset : QPointF

This property holds the last offset recorded for this gesture.

最後偏移包含的用戶輸入位置的變化的報告在 offset 特性,當該手勢交付先前手勢事件時。

若先前沒有交付具有此手勢有關信息的事件 (即:此手勢對象包含手勢第一次移動的有關信息),則此特性包含 0 大小。

訪問函數:

QPointF lastOffset () const
void setLastOffset (const QPointF & value )

offset : QPointF

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

偏移度量輸入設備手勢覆蓋的用戶輸入位置的總變化。

訪問函數:

QPointF offset () const
void setOffset (const QPointF & value )