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