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 .
此特性保持敲击的位置
访问函数:
QPointF | 位置 () const |
void | setPosition (const QPointF & pos ) |
析构函数。
[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 ().