Note
This class was introduced in Qt 4.6
The TouchPoint class provides information about a touch point in a PySide.QtGui.QTouchEvent .
Parameters: |
|
---|
Constructs a QTouchEvent.TouchPoint for use in a PySide.QtGui.QTouchEvent .
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.
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.
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()
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()
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()
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()
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()
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()
Return type: | PySide.QtCore.qreal |
---|
Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0.
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.
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()
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()
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()
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()
Parameters: | id – PySide.QtCore.int |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.id()
Parameters: | lastNormalizedPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.lastNormalizedPos()
Parameters: | lastPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.lastPos()
Parameters: | lastScenePos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.lastScenePos()
Parameters: | lastScreenPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.lastScreenPos()
Parameters: | normalizedPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.normalizedPos()
Parameters: | pos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.pos()
Parameters: | pressure – PySide.QtCore.qreal |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.pressure()
Parameters: | rect – PySide.QtCore.QRectF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.rect()
Parameters: | scenePos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.scenePos()
Parameters: | sceneRect – PySide.QtCore.QRectF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.sceneRect()
Parameters: | screenPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.screenPos()
Parameters: | screenRect – PySide.QtCore.QRectF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.screenRect()
Parameters: | startNormalizedPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.startNormalizedPos()
Parameters: | startPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.startPos()
Parameters: | startScenePos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.startScenePos()
Parameters: | startScreenPos – PySide.QtCore.QPointF |
---|
See also
PySide.QtGui.QTouchEvent::TouchPoint.startScreenPos()
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()
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()
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()
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()
Return type: | PySide.QtCore.Qt.TouchPointState |
---|
Returns the current state of this touch point.