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