QTapAndHoldGesture Class
The QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user. 更多...
头文件: | #include <QTapAndHoldGesture> |
qmake: | QT += widgets |
开始支持版本: | Qt 4.6 |
基类: | QGesture |
属性
- position : QPointF
公有函数
~QTapAndHoldGesture() | |
QPointF | position() const |
void | setPosition(const QPointF &pos) |
静态公有成员
void | setTimeout(int msecs) |
int | timeout() |
- 10 个静态公有成员继承自 QObject
其他继承的成员
详细描述
The QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user.
For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures in Widgets and Graphics View document.
参见 QPanGesture and QPinchGesture.
属性
position : QPointF
This property holds the position of the tap
访问函数:
QPointF | position() const |
void | setPosition(const QPointF &pos) |
成员函数
QTapAndHoldGesture::~QTapAndHoldGesture()
Destructor.
[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().