QTapAndHoldGesture 类描述由用户做出的敲击并保持 (亦称作 LongTap) 手势。 更多...
头: | #include <QTapAndHoldGesture> |
qmake: | QT += widgets |
Since: | Qt 4.6 |
继承: | QGesture |
该类在 Qt 4.6 引入。
virtual | ~QTapAndHoldGesture () |
QPointF | position () const |
void | setPosition (const QPointF & pos ) |
void | setTimeout (int msecs ) |
int | timeout () |
对于 Qt 中手势处理的概述和在应用程序中使用手势的信息,见 在 Widget 和图形视图中的手势 文档。
另请参阅 QPanGesture and QPinchGesture .
此特性保持敲击的位置
访问函数:
QPointF | 位置 () const |
void | setPosition (const QPointF & pos ) |
[virtual]
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 ().