QSwipeGesture Class Reference

[ QtGui module]

The QSwipeGesture class describes a swipe gesture made by the user. 更多...

继承 QGesture .

类型

方法


详细描述

The QSwipeGesture class describes a swipe 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 文档。


类型文档编制

QSwipeGesture.SwipeDirection

This enum describes the possible directions for the gesture's motion along the horizontal and vertical axes.

常量 描述
QSwipeGesture.NoDirection 0 The gesture had no motion associated with it on a particular axis.
QSwipeGesture.Left 1 The gesture involved a horizontal motion to the left.
QSwipeGesture.Right 2 The gesture involved a horizontal motion to the right.
QSwipeGesture.Up 3 The gesture involved an upward vertical motion.
QSwipeGesture.Down 4 The gesture involved a downward vertical motion.

方法文档编制

QSwipeGesture.__init__ ( self , QObject   parent  = None)

parent argument, if not None, causes self to be owned by Qt instead of PyQt.

SwipeDirection QSwipeGesture.horizontalDirection ( self )

QSwipeGesture.setSwipeAngle ( self , float  value )

float QSwipeGesture.swipeAngle ( self )

SwipeDirection QSwipeGesture.verticalDirection ( self )