QTapAndHoldGesture

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

Inheritance diagram of PySide2.QtWidgets.QTapAndHoldGesture

New in version 4.6.

Synopsis

Functions

Static functions

Detailed Description

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.

class QTapAndHoldGesture([parent=None])
Parameters

parentQObject

PySide2.QtWidgets.QTapAndHoldGesture.position()
Return type

QPointF

See also

setPosition()

PySide2.QtWidgets.QTapAndHoldGesture.setPosition(pos)
Parameters

posQPointF

See also

position()

static PySide2.QtWidgets.QTapAndHoldGesture.setTimeout(msecs)
Parameters

msecsint

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.

See also

timeout()

static PySide2.QtWidgets.QTapAndHoldGesture.timeout()
Return type

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.

See also

setTimeout()