QTapAndHoldGesture 类

QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user. 更多...

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

特性

公共函数

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

静态公共成员

void setTimeout (int msecs )
int timeout ()

额外继承成员

详细描述

QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user.

对于 Qt 中手势处理的概述和在应用程序中使用手势的信息,见 在 Widget 和图形视图中的手势 文档。

另请参阅 QPanGesture and QPinchGesture .

特性文档编制

position : QPointF

此特性保持敲击的位置

访问函数:

QPointF 位置 () const
void setPosition (const QPointF & pos )

成员函数文档编制

QTapAndHoldGesture:: ~QTapAndHoldGesture ()

析构函数。

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

Set the timeout, in milliseconds, before the gesture triggers.

The recognizer will detect a touch down and if msecs later the touch is still down, it will trigger the QTapAndHoldGesture . The default value is 700 milliseconds.

另请参阅 timeout ().

[static] int QTapAndHoldGesture:: timeout ()

Gets the timeout, in milliseconds, before the gesture triggers.

The recognizer will detect a touch down and if timeout() later the touch is still down, it will trigger the QTapAndHoldGesture . The default value is 700 milliseconds.

另请参阅 setTimeout ().