![]() |
Home · All Classes · Overviews |
The QSwipeGesture class represents a swipe gesture, providing additional information related to swiping. More...
#include <QSwipeGesture>
Inherits QGesture.
This class was introduced in Qt 4.6.
| enum | SwipeDirection { NoDirection, Left, Right, Up, Down } |
| QSwipeGesture ( QWidget * gestureTarget, QObject * parent = 0 ) | |
| SwipeDirection | horizontalDirection () const |
| qreal | swipeAngle () const |
| SwipeDirection | verticalDirection () const |
The QSwipeGesture class represents a swipe gesture, providing additional information related to swiping.
This enum specifies the direction of the swipe gesture.
| Constant | Value |
|---|---|
| QSwipeGesture::NoDirection | 0 |
| QSwipeGesture::Left | 1 |
| QSwipeGesture::Right | 2 |
| QSwipeGesture::Up | 3 |
| QSwipeGesture::Down | 4 |
Holds the direction for the horizontal component of the swipe gesture, SwipeDirection::Left or SwipeDirection::Right. SwipeDirection::NoDirection if there is no horizontal component to the swipe gesture.
Access functions:
| SwipeDirection | horizontalDirection () const |
Holds the angle of the swipe gesture, 0..360.
Access functions:
| qreal | swipeAngle () const |
Holds the direction for the vertical component of the swipe gesture, SwipeDirection::Down or SwipeDirection::Up. SwipeDirection::NoDirection if there is no vertical component to the swipe gesture.
Access functions:
| SwipeDirection | verticalDirection () const |
Creates a new Swipe gesture handler object and marks it as a child of parent. The swipe gesture handler watches gestureTarget for its events.
On some platform like Windows it's necessary to provide a non-null widget as parent to get native gesture support.
| Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0-tp1 |