QTapAndHoldGesture 類

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

頭: #include <QTapAndHoldGesture>
Since: Qt 4.6
繼承: QGesture

特性

公共函數

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

靜態公共成員

void setTimeout (int msecs )
int timeout ()

額外繼承成員

詳細描述

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

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

另請參閱 QPanGesture and QPinchGesture .

特性文檔編製

position : QPointF

This property holds the position of the tap.

訪問函數:

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

成員函數文檔編製

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

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

The recognizer will detect a touch down and and if msecs 後觸摸仍嚮下,它將觸發 QTapAndHoldGesture 。默認值為 700 毫秒。

另請參閱 timeout ().

[static] int QTapAndHoldGesture:: timeout ()

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

The recognizer will detect a touch down and and if timeout() later the touch is still down, it will trigger the QTapAndHoldGesture 。默認值為 700 毫秒。

另請參閱 setTimeout ().