PySide6.QtWidgets.QTapAndHoldGesture¶
- class QTapAndHoldGesture¶
The
QTapAndHoldGesture
class describes a tap-and-hold (aka LongTap) gesture made by the user. More…Added in version 4.6.
Synopsis¶
Properties¶
positionᅟ
- The position of the tap
Methods¶
def
__init__()
def
position()
def
setPosition()
Static functions¶
def
setTimeout()
def
timeout()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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.
See also
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.This property holds the position of the tap.
- Access functions:
- position()¶
- Return type:
See also
Getter of property
positionᅟ
.Setter of property
positionᅟ
.- static setTimeout(msecs)¶
- Parameters:
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 theQTapAndHoldGesture
. The default value is 700 milliseconds.See also
- static timeout()¶
- Return type:
int
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.See also