Qt 4.6: QPanGesture Class Reference

|  | Home · All Classes · Overviews |

# QPanGesture Class Reference
[QtGui module]

The QPanGesture class represents a Pan gesture, providing additional information related to panning. More...

     #include <QPanGesture>

Inherits QGesture.

This class was introduced in Qt 4.6.

- List of all members, including inherited members

## Properties

- lastOffset : const QSizeF
- offset : const QSizeF
- totalOffset : const QSizeF

- 2 properties inherited from QGesture
- 1 property inherited from QObject

## Public Functions

| QPanGesture ( QWidget * gestureTarget, QObject * parent = 0 )
QSizeF | lastOffset () const
QSizeF | offset () const
QSizeF | totalOffset () const

- 6 public functions inherited from QGesture
- 29 public functions inherited from QObject

### Additional Inherited Members

- 1 public slot inherited from QObject
- 4 signals inherited from QGesture
- 1 signal inherited from QObject
- 5 static public members inherited from QObject
- 2 protected functions inherited from QGesture
- 7 protected functions inherited from QObject

## Detailed Description

The QPanGesture class represents a Pan gesture, providing additional information related to panning.

## Property Documentation

### lastOffset : const QSizeF

Specifies a pan offset the last time the gesture was triggered.

Access functions:

QSizeF | lastOffset () const

### offset : const QSizeF

Specifies the current pan offset since the last time the gesture was triggered.

Access functions:

QSizeF | offset () const

### totalOffset : const QSizeF

Specifies a total pan offset since the start of the gesture.

Access functions:

QSizeF | totalOffset () const

## Member Function Documentation

### QPanGesture::QPanGesture ( QWidget * gestureTarget, QObject * parent = 0 )

Creates a new pan gesture handler object and marks it as a child of parent. The pan 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.