QPanGesture Class

The QPanGesture class describes a panning gesture made by the user. 更多...

头文件: #include <QPanGesture>
qmake: QT += widgets
开始支持版本: Qt 4.6
基类: QGesture

属性

公有函数

~QPanGesture()
qreal acceleration() const
QPointF delta() const
QPointF lastOffset() const
QPointF offset() const
void setAcceleration(qreal value)
void setLastOffset(const QPointF &value)
void setOffset(const QPointF &value)

其他继承的成员

  • 1 个公有槽函数继承自 QObject
  • 2 个信号继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QPanGesture class describes a panning gesture made by the user.

For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures in Widgets and Graphics View document.

参见 QPinchGesture and QSwipeGesture.

属性

acceleration : qreal

This property holds the acceleration in the motion of the touch point for this gesture

访问函数:

qreal acceleration() const
void setAcceleration(qreal value)

delta : const QPointF

This property holds the offset from the previous input position to the current input

This is essentially the same as the difference between offset() and lastOffset().

访问函数:

QPointF delta() const

lastOffset : QPointF

This property holds the last offset recorded for this gesture

The last offset contains the change in position of the user's input as reported in the offset property when a previous gesture event was delivered for this gesture.

If no previous event was delivered with information about this gesture (i.e., this gesture object contains information about the first movement in the gesture) then this property contains a zero size.

访问函数:

QPointF lastOffset() const
void setLastOffset(const QPointF &value)

offset : QPointF

This property holds the total offset from the first input position to the current input position

The offset measures the total change in position of the user's input covered by the gesture on the input device.

访问函数:

QPointF offset() const
void setOffset(const QPointF &value)

成员函数

QPanGesture::~QPanGesture()

Destructor.