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.


Properties


Public Functions

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

Additional Inherited Members


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.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0-tp1