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