QTapAndHoldGesture 類

The QTapAndHoldGesture 類描述由用戶做齣的敲擊並保持 (亦稱作 LongTap) 手勢。 更多...

頭: #include <QTapAndHoldGesture>
qmake: QT += widgets
Since: Qt 4.6
繼承: QGesture

特性

公共函數

virtual ~QTapAndHoldGesture ()
QPointF position () const
void setPosition (const QPointF & pos )

靜態公共成員

void setTimeout (int msecs )
const QMetaObject staticMetaObject
int timeout ()

額外繼承成員

詳細描述

The QTapAndHoldGesture 類描述由用戶做齣的敲擊並保持 (亦稱作 LongTap) 手勢。

Qt 中手勢處理的概述和在應用程序中使用手勢的有關信息,見 Widget 和圖形視圖中的手勢 文檔。

另請參閱 QPanGesture and QPinchGesture .

特性文檔編製

position : QPointF

此特性保持敲擊的位置

訪問函數:

QPointF position () const
void setPosition (const QPointF & pos )

成員函數文檔編製

[虛擬] QTapAndHoldGesture:: ~QTapAndHoldGesture ()

析構函數。

[static] void QTapAndHoldGesture:: setTimeout ( int msecs )

設置超時 (以毫秒為單位),在手勢觸發之前。

識彆器將檢測嚮下觸摸,且若 msecs 後觸摸仍嚮下,它將觸發 QTapAndHoldGesture 。默認值為 700 毫秒。

另請參閱 timeout ().

[static] int QTapAndHoldGesture:: timeout ()

獲取超時 (以毫秒為單位),在手勢觸發之前。

識彆器將檢測嚮下觸摸,且若 timeout() 後觸摸仍嚮下,它將觸發 QTapAndHoldGesture 。默認值為 700 毫秒。

另請參閱 setTimeout ().