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

    上一话题

    QPinchGesture

    下一话题

    QValidator

    QPanGesture

    注意

    该类在 Qt4.6 引入

    概要

    函数

    详细描述

    PySide.QtGui.QPanGesture class describes a panning gesture made by the user.

    ../../_images/pangesture.png

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

    class PySide.QtGui. QPanGesture ( [ parent=None ] )
    参数: parent PySide.QtCore.QObject
    PySide.QtGui.QPanGesture. acceleration ( )
    返回类型: PySide.QtCore.qreal

    This property holds the acceleration in the motion of the touch point for this gesture.

    PySide.QtGui.QPanGesture. delta ( )
    返回类型: PySide.QtCore.QPointF

    This property holds the offset from the previous input position to the current input.

    This is essentially the same as the difference between PySide.QtGui.QPanGesture.offset() and PySide.QtGui.QPanGesture.lastOffset() .

    PySide.QtGui.QPanGesture. lastOffset ( )
    返回类型: PySide.QtCore.QPointF

    This property holds the last offset recorded for this gesture.

    The last offset contains the change in position of the user's input as reported in the PySide.QtGui.QPanGesture.offset() property when a previous gesture event was delivered for this gesture.

    If no previous event was delivered with information about this gesture (i.e., this gesture object contains information about the first movement in the gesture) then this property contains a zero size.

    PySide.QtGui.QPanGesture. offset ( )
    返回类型: PySide.QtCore.QPointF

    This property holds the total offset from the first input position to the current input position.

    The offset measures the total change in position of the user's input covered by the gesture on the input device.

    PySide.QtGui.QPanGesture. setAcceleration ( value )
    参数: value PySide.QtCore.qreal

    This property holds the acceleration in the motion of the touch point for this gesture.

    PySide.QtGui.QPanGesture. setLastOffset ( value )
    参数: value PySide.QtCore.QPointF

    This property holds the last offset recorded for this gesture.

    The last offset contains the change in position of the user's input as reported in the PySide.QtGui.QPanGesture.offset() property when a previous gesture event was delivered for this gesture.

    If no previous event was delivered with information about this gesture (i.e., this gesture object contains information about the first movement in the gesture) then this property contains a zero size.

    PySide.QtGui.QPanGesture. setOffset ( value )
    参数: value PySide.QtCore.QPointF

    This property holds the total offset from the first input position to the current input position.

    The offset measures the total change in position of the user's input covered by the gesture on the input device.