• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QGesture

    下一话题

    QTapGesture

    QTapAndHoldGesture

    注意

    该类在 Qt4.6 引入

    概要

    函数

    静态函数

    详细描述

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

    For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures Programming 文档。

    class PySide.QtGui. QTapAndHoldGesture ( [ parent=None ] )
    参数: parent PySide.QtCore.QObject
    PySide.QtGui.QTapAndHoldGesture. position ( )
    返回类型: PySide.QtCore.QPointF

    This property holds the position of the tap.

    PySide.QtGui.QTapAndHoldGesture. setPosition ( pos )
    参数: pos PySide.QtCore.QPointF

    This property holds the position of the tap.

    static PySide.QtGui.QTapAndHoldGesture. setTimeout ( msecs )
    参数: msecs PySide.QtCore.int

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

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

    static PySide.QtGui.QTapAndHoldGesture. timeout ( )
    返回类型: PySide.QtCore.int

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

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