QTapAndHoldGesture¶
The
QTapAndHoldGesture
class describes a tap-and-hold (aka LongTap) gesture made by the user. More…
New in version 4.6.
Synopsis¶
Functions¶
def
position
()def
setPosition
(pos)
Static functions¶
def
setTimeout
(msecs)def
timeout
()
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
- class PySide2.QtWidgets.QTapAndHoldGesture([parent=None])¶
- Parameters:
parent –
PySide2.QtCore.QObject
- PySide2.QtWidgets.QTapAndHoldGesture.position()¶
- Return type:
This property holds the position of the tap.
- PySide2.QtWidgets.QTapAndHoldGesture.setPosition(pos)¶
- Parameters:
pos –
PySide2.QtCore.QPointF
This property holds the position of the tap.
- static PySide2.QtWidgets.QTapAndHoldGesture.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 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
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.