The TouchPoint class provides information about a touch point in a QTouchEvent. More...
#include <QTouchEvent>
This class was introduced in Qt 4.6.
int | id () const |
bool | isPrimary () const |
QPointF | lastNormalizedPos () const |
QPointF | lastPos () const |
QPointF | lastScenePos () const |
QPointF | lastScreenPos () const |
QPointF | normalizedPos () const |
QPointF | pos () const |
qreal | pressure () const |
QRectF | rect () const |
QPointF | scenePos () const |
QRectF | sceneRect () const |
QPointF | screenPos () const |
QRectF | screenRect () const |
QPointF | startNormalizedPos () const |
QPointF | startPos () const |
QPointF | startScenePos () const |
QPointF | startScreenPos () const |
Qt::TouchPointState | state () const |
The TouchPoint class provides information about a touch point in a QTouchEvent.
Returns the id number of this touch point.
Id numbers are globally sequential, starting at zero, meaning the first touch point in the application has id 0, the second has id 1, and so on.
Returns true if this touch point is the primary touch point. The primary touch point is the point for which the windowing system generates mouse events.
Returns the normalized position of this touch point from the previous touch event.
The coordinates are normalized to the size of the touch device, i.e. (0,0) is the top-left corner and (1,1) is the bottom-right corner.
See also normalizedPos() and startNormalizedPos().
Returns the position of this touch point from the previous touch event, relative to the widget or QGraphicsItem that received the event.
See also pos() and startPos().
Returns the scene position of this touch point from the previous touch event.
The scene position is the position in QGraphicsScene coordinates if the QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.
See also scenePos() and startScenePos().
Returns the screen position of this touch point from the previous touch event.
See also screenPos() and startScreenPos().
Returns the normalized position of this touch point.
The coordinates are normalized to the size of the touch device, i.e. (0,0) is the top-left corner and (1,1) is the bottom-right corner.
See also startNormalizedPos(), lastNormalizedPos(), and pos().
Returns the position of this touch point, relative to the widget or QGraphicsItem that received the event.
See also startPos(), lastPos(), screenPos(), scenePos(), and normalizedPos().
Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0.
Returns the rect for this touch point, relative to the widget or QGraphicsItem that received the event. The rect is centered around the point returned by pos().
Note: This function returns an empty rect if the device does not report touch point sizes.
Returns the scene position of this touch point.
The scene position is the position in QGraphicsScene coordinates if the QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.
See also startScenePos(), lastScenePos(), and pos().
Returns the rect for this touch point in scene coordinates.
Note: This function returns an empty rect if the device does not report touch point sizes.
See also scenePos() and rect().
Returns the screen position of this touch point.
See also startScreenPos(), lastScreenPos(), and pos().
Returns the rect for this touch point in screen coordinates.
Note: This function returns an empty rect if the device does not report touch point sizes.
See also screenPos() and rect().
Returns the normalized starting position of this touch point.
The coordinates are normalized to the size of the touch device, i.e. (0,0) is the top-left corner and (1,1) is the bottom-right corner.
See also normalizedPos() and lastNormalizedPos().
Returns the starting position of this touch point, relative to the widget or QGraphicsItem that received the event.
Returns the starting scene position of this touch point.
The scene position is the position in QGraphicsScene coordinates if the QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.
See also scenePos() and lastScenePos().
Returns the starting screen position of this touch point.
See also screenPos() and lastScreenPos().
Returns the current state of this touch point.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.