内容表

上一话题

QTableWidgetSelectionRange

下一话题

QTapGesture

QTapAndHoldGesture

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

Inheritance diagram of PySide2.QtWidgets.QTapAndHoldGesture

4.6 版新增。

概要

函数

静态函数

详细描述

For an overview of gesture handling in Qt and information on using gestures in your applications, see the 在 Widget 和图形视图中的手势 文档。

class QTapAndHoldGesture ( [ parent=None ] )
参数

parent QObject

PySide2.QtWidgets.QTapAndHoldGesture. position ( )
返回类型

QPointF

另请参阅

setPosition()

PySide2.QtWidgets.QTapAndHoldGesture. setPosition ( pos )
参数

pos QPointF

另请参阅

position()

static PySide2.QtWidgets.QTapAndHoldGesture. setTimeout ( msecs )
参数

msecs int

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 PySide2.QtWidgets.QTapAndHoldGesture. timeout ( )
返回类型

int

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

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

另请参阅

setTimeout()