Home · All Classes · Modules

QSwipeGesture Class Reference
[QtGui module]

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

Inherits QGesture.

Types

Methods


Detailed Description

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

See also Gestures Programming, QPanGesture, and QPinchGesture.


Type Documentation

QSwipeGesture.SwipeDirection

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

ConstantValueDescription
QSwipeGesture.NoDirection0The gesture had no motion associated with it on a particular axis.
QSwipeGesture.Left1The gesture involved a horizontal motion to the left.
QSwipeGesture.Right2The gesture involved a horizontal motion to the right.
QSwipeGesture.Up3The gesture involved an upward vertical motion.
QSwipeGesture.Down4The gesture involved a downward vertical motion.


Method Documentation

QSwipeGesture.__init__ (self, QObject parent = None)

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

SwipeDirection QSwipeGesture.horizontalDirection (self)

QSwipeGesture.setSwipeAngle (self, float)

float QSwipeGesture.swipeAngle (self)

SwipeDirection QSwipeGesture.verticalDirection (self)


PyQt 4.7.3 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.6.2