QTapAndHoldGestureclass describes a tap-and-hold (aka LongTap) gesture made by the user. 更多 …
4.6 版新增。
For an overview of gesture handling in Qt and information on using gestures in your applications, see the 在 Widget 和图形视图中的手势 文档。
另请参阅
QTapAndHoldGesture
(
[
parent=None
]
)
¶
parent
–
QObject
PySide2.QtWidgets.QTapAndHoldGesture.
position
(
)
¶
QPointF
另请参阅
PySide2.QtWidgets.QTapAndHoldGesture.
setPosition
(
pos
)
¶
pos
–
QPointF
另请参阅
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.
另请参阅
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.
另请参阅