Table Of Contents

Previous topic

QTouchEvent

Next topic

QContextMenuEvent

QTouchEvent.TouchPoint

Note

This class was introduced in Qt 4.6

Synopsis

Functions

Detailed Description

The TouchPoint class provides information about a touch point in a PySide.QtGui.QTouchEvent .
class PySide.QtGui.QTouchEvent.TouchPoint(other)
class PySide.QtGui.QTouchEvent.TouchPoint([id=-1])
Parameters:
  • otherPySide.QtGui.QTouchEvent::TouchPoint
  • idPySide.QtCore.int

Constructs a QTouchEvent.TouchPoint for use in a PySide.QtGui.QTouchEvent .

PySide.QtGui.QTouchEvent.TouchPoint.id()
Return type:PySide.QtCore.int

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.

PySide.QtGui.QTouchEvent.TouchPoint.isPrimary()
Return type:PySide.QtCore.bool

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.

PySide.QtGui.QTouchEvent.TouchPoint.lastNormalizedPos()
Return type:PySide.QtCore.QPointF

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

PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.startNormalizedPos()

PySide.QtGui.QTouchEvent.TouchPoint.lastPos()
Return type:PySide.QtCore.QPointF

Returns the position of this touch point from the previous touch event, relative to the widget or PySide.QtGui.QGraphicsItem that received the event.

See also

PySide.QtGui.QTouchEvent::TouchPoint.pos() PySide.QtGui.QTouchEvent::TouchPoint.startPos()

PySide.QtGui.QTouchEvent.TouchPoint.lastScenePos()
Return type:PySide.QtCore.QPointF

Returns the scene position of this touch point from the previous touch event.

The scene position is the position in PySide.QtGui.QGraphicsScene coordinates if the PySide.QtGui.QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.

See also

PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.startScenePos()

PySide.QtGui.QTouchEvent.TouchPoint.lastScreenPos()
Return type:PySide.QtCore.QPointF

Returns the screen position of this touch point from the previous touch event.

See also

PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.startScreenPos()

PySide.QtGui.QTouchEvent.TouchPoint.normalizedPos()
Return type:PySide.QtCore.QPointF

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

PySide.QtGui.QTouchEvent::TouchPoint.startNormalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.lastNormalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.pos()

PySide.QtGui.QTouchEvent.TouchPoint.pos()
Return type:PySide.QtCore.QPointF

Returns the position of this touch point, relative to the widget or PySide.QtGui.QGraphicsItem that received the event.

See also

PySide.QtGui.QTouchEvent::TouchPoint.startPos() PySide.QtGui.QTouchEvent::TouchPoint.lastPos() PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos()

PySide.QtGui.QTouchEvent.TouchPoint.pressure()
Return type:PySide.QtCore.qreal

Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0.

PySide.QtGui.QTouchEvent.TouchPoint.rect()
Return type:PySide.QtCore.QRectF

Returns the rect for this touch point, relative to the widget or PySide.QtGui.QGraphicsItem that received the event. The rect is centered around the point returned by PySide.QtGui.QTouchEvent::TouchPoint.pos() .

Note

This function returns an empty rect if the device does not report touch point sizes.

PySide.QtGui.QTouchEvent.TouchPoint.scenePos()
Return type:PySide.QtCore.QPointF

Returns the scene position of this touch point.

The scene position is the position in PySide.QtGui.QGraphicsScene coordinates if the PySide.QtGui.QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.

See also

PySide.QtGui.QTouchEvent::TouchPoint.startScenePos() PySide.QtGui.QTouchEvent::TouchPoint.lastScenePos() PySide.QtGui.QTouchEvent::TouchPoint.pos()

PySide.QtGui.QTouchEvent.TouchPoint.sceneRect()
Return type:PySide.QtCore.QRectF

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

PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.rect()

PySide.QtGui.QTouchEvent.TouchPoint.screenPos()
Return type:PySide.QtCore.QPointF

Returns the screen position of this touch point.

See also

PySide.QtGui.QTouchEvent::TouchPoint.startScreenPos() PySide.QtGui.QTouchEvent::TouchPoint.lastScreenPos() PySide.QtGui.QTouchEvent::TouchPoint.pos()

PySide.QtGui.QTouchEvent.TouchPoint.screenRect()
Return type:PySide.QtCore.QRectF

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

PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.rect()

PySide.QtGui.QTouchEvent.TouchPoint.setId(id)
Parameters:idPySide.QtCore.int

See also

PySide.QtGui.QTouchEvent::TouchPoint.id()

PySide.QtGui.QTouchEvent.TouchPoint.setLastNormalizedPos(lastNormalizedPos)
Parameters:lastNormalizedPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.lastNormalizedPos()

PySide.QtGui.QTouchEvent.TouchPoint.setLastPos(lastPos)
Parameters:lastPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.lastPos()

PySide.QtGui.QTouchEvent.TouchPoint.setLastScenePos(lastScenePos)
Parameters:lastScenePosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.lastScenePos()

PySide.QtGui.QTouchEvent.TouchPoint.setLastScreenPos(lastScreenPos)
Parameters:lastScreenPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.lastScreenPos()

PySide.QtGui.QTouchEvent.TouchPoint.setNormalizedPos(normalizedPos)
Parameters:normalizedPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos()

PySide.QtGui.QTouchEvent.TouchPoint.setPos(pos)
Parameters:posPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.pos()

PySide.QtGui.QTouchEvent.TouchPoint.setPressure(pressure)
Parameters:pressurePySide.QtCore.qreal

See also

PySide.QtGui.QTouchEvent::TouchPoint.pressure()

PySide.QtGui.QTouchEvent.TouchPoint.setRect(rect)
Parameters:rectPySide.QtCore.QRectF

See also

PySide.QtGui.QTouchEvent::TouchPoint.rect()

PySide.QtGui.QTouchEvent.TouchPoint.setScenePos(scenePos)
Parameters:scenePosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.scenePos()

PySide.QtGui.QTouchEvent.TouchPoint.setSceneRect(sceneRect)
Parameters:sceneRectPySide.QtCore.QRectF

See also

PySide.QtGui.QTouchEvent::TouchPoint.sceneRect()

PySide.QtGui.QTouchEvent.TouchPoint.setScreenPos(screenPos)
Parameters:screenPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.screenPos()

PySide.QtGui.QTouchEvent.TouchPoint.setScreenRect(screenRect)
Parameters:screenRectPySide.QtCore.QRectF

See also

PySide.QtGui.QTouchEvent::TouchPoint.screenRect()

PySide.QtGui.QTouchEvent.TouchPoint.setStartNormalizedPos(startNormalizedPos)
Parameters:startNormalizedPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.startNormalizedPos()

PySide.QtGui.QTouchEvent.TouchPoint.setStartPos(startPos)
Parameters:startPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.startPos()

PySide.QtGui.QTouchEvent.TouchPoint.setStartScenePos(startScenePos)
Parameters:startScenePosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.startScenePos()

PySide.QtGui.QTouchEvent.TouchPoint.setStartScreenPos(startScreenPos)
Parameters:startScreenPosPySide.QtCore.QPointF

See also

PySide.QtGui.QTouchEvent::TouchPoint.startScreenPos()

PySide.QtGui.QTouchEvent.TouchPoint.startNormalizedPos()
Return type:PySide.QtCore.QPointF

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

PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos() PySide.QtGui.QTouchEvent::TouchPoint.lastNormalizedPos()

PySide.QtGui.QTouchEvent.TouchPoint.startPos()
Return type:PySide.QtCore.QPointF

Returns the starting position of this touch point, relative to the widget or PySide.QtGui.QGraphicsItem that received the event.

See also

PySide.QtGui.QTouchEvent::TouchPoint.pos() PySide.QtGui.QTouchEvent::TouchPoint.lastPos()

PySide.QtGui.QTouchEvent.TouchPoint.startScenePos()
Return type:PySide.QtCore.QPointF

Returns the starting scene position of this touch point.

The scene position is the position in PySide.QtGui.QGraphicsScene coordinates if the PySide.QtGui.QTouchEvent is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.

See also

PySide.QtGui.QTouchEvent::TouchPoint.scenePos() PySide.QtGui.QTouchEvent::TouchPoint.lastScenePos()

PySide.QtGui.QTouchEvent.TouchPoint.startScreenPos()
Return type:PySide.QtCore.QPointF

Returns the starting screen position of this touch point.

See also

PySide.QtGui.QTouchEvent::TouchPoint.screenPos() PySide.QtGui.QTouchEvent::TouchPoint.lastScreenPos()

PySide.QtGui.QTouchEvent.TouchPoint.state()
Return type:PySide.QtCore.Qt.TouchPointState

Returns the current state of this touch point.