PythonQt.Qt.QTouchEvent__TouchPoint · declarations 001
Back to PythonQt.Qt.QTouchEvent__TouchPoint
InfoFlag
instance-attribute
InfoFlag: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
InfoFlags
instance-attribute
InfoFlags: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
flags
flags() -> Any
X.flags()
Supplemental documentation: Qt 5 reference:
TouchPoint::InfoFlags TouchPoint::flags() const
Returns additional information about the touch point.
See also QTouchEvent::TouchPoint::InfoFlags.
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#flags
id
id() -> int
X.id() -> int
Supplemental documentation: Qt 5 reference:
int TouchPoint::id() const
Returns the id number of this touch point.
Do not assume that id numbers start at zero or that they are sequential. Such an assumption is often false due to the way the underlying drivers work.
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#id
lastNormalizedPos
lastNormalizedPos() -> Any
X.lastNormalizedPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::lastNormalizedPos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#lastNormalizedPos
lastPos
lastPos() -> Any
X.lastPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::lastPos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#lastPos
lastScenePos
lastScenePos() -> Any
X.lastScenePos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::lastScenePos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#lastScenePos
lastScreenPos
lastScreenPos() -> Any
X.lastScreenPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::lastScreenPos() const
Returns the screen position of this touch point from the previous touch event.
See also screenPos() and startScreenPos().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#lastScreenPos
normalizedPos
normalizedPos() -> Any
X.normalizedPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::normalizedPos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#normalizedPos
operator_assign
operator_assign(other: Any) -> Any
X.operator_assign(other) -> PythonQt.QtGui.QTouchEvent::TouchPoint
pos
pos() -> Any
X.pos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::pos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#pos
pressure
pressure() -> float
X.pressure() -> float
Supplemental documentation: Qt 5 reference:
qreal TouchPoint::pressure() const
Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0.
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#pressure
rawScreenPositions
rawScreenPositions() -> tuple
X.rawScreenPositions() -> tuple
Supplemental documentation: Qt 5 reference:
QVector\<QPointF> TouchPoint::rawScreenPositions() const
Returns the raw, unfiltered positions for the touch point. The positions are in native screen coordinates. To get local coordinates you can use mapFromGlobal() of the QWindow returned by QTouchEvent::window().
Note: Returns an empty vector if the touch device's capabilities do not include QTouchDevice::RawPositions.
Note: Native screen coordinates refer to the native orientation of the screen which, in case of mobile devices, is typically portrait. This means that on systems capable of screen orientation changes the positions in this list will not reflect the current orientation (unlike pos(), screenPos(), etc.) and will always be reported in the native orientation.
This function was introduced in Qt 5.0.
See also QTouchDevice::capabilities(), device(), and window().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#rawScreenPositions
scenePos
scenePos() -> Any
X.scenePos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::scenePos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#scenePos
sceneRect
sceneRect() -> Any
X.sceneRect() -> PythonQt.QtCore.QRectF
screenPos
screenPos() -> Any
X.screenPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::screenPos() const
Returns the screen position of this touch point.
See also startScreenPos(), lastScreenPos(), and pos().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#screenPos
screenRect
screenRect() -> Any
X.screenRect() -> PythonQt.QtCore.QRectF
setId
setId(id: Any) -> Any
X.setId(id)
setLastNormalizedPos
setLastNormalizedPos(lastNormalizedPos: Any) -> Any
X.setLastNormalizedPos(lastNormalizedPos)
setLastPos
setLastPos(lastPos: Any) -> Any
X.setLastPos(lastPos)
setLastScenePos
setLastScenePos(lastScenePos: Any) -> Any
X.setLastScenePos(lastScenePos)
setLastScreenPos
setLastScreenPos(lastScreenPos: Any) -> Any
X.setLastScreenPos(lastScreenPos)
setNormalizedPos
setNormalizedPos(normalizedPos: Any) -> Any
X.setNormalizedPos(normalizedPos)
setPos
setPos(pos: Any) -> Any
X.setPos(pos)
setPressure
setPressure(pressure: Any) -> Any
X.setPressure(pressure)
setRawScreenPositions
setRawScreenPositions(positions: Any) -> Any
X.setRawScreenPositions(positions)
setRect
setRect(rect: Any) -> Any
X.setRect(rect)
setScenePos
setScenePos(scenePos: Any) -> Any
X.setScenePos(scenePos)
setSceneRect
setSceneRect(sceneRect: Any) -> Any
X.setSceneRect(sceneRect)
setScreenPos
setScreenPos(screenPos: Any) -> Any
X.setScreenPos(screenPos)
setScreenRect
setScreenRect(screenRect: Any) -> Any
X.setScreenRect(screenRect)
setStartNormalizedPos
setStartNormalizedPos(startNormalizedPos: Any) -> Any
X.setStartNormalizedPos(startNormalizedPos)
setStartPos
setStartPos(startPos: Any) -> Any
X.setStartPos(startPos)
setStartScenePos
setStartScenePos(startScenePos: Any) -> Any
X.setStartScenePos(startScenePos)
setStartScreenPos
setStartScreenPos(startScreenPos: Any) -> Any
X.setStartScreenPos(startScreenPos)
setVelocity
setVelocity(v: Any) -> Any
X.setVelocity(v)
startNormalizedPos
startNormalizedPos() -> Any
X.startNormalizedPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::startNormalizedPos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#startNormalizedPos
startPos
startPos() -> Any
X.startPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::startPos() const
Returns the starting position of this touch point, relative to the widget or QGraphicsItem that received the event.
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#startPos
startScenePos
startScenePos() -> Any
X.startScenePos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::startScenePos() const
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().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#startScenePos
startScreenPos
startScreenPos() -> Any
X.startScreenPos() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF TouchPoint::startScreenPos() const
Returns the starting screen position of this touch point.
See also screenPos() and lastScreenPos().
Source: https://doc.qt.io/archives/qt-5.15/qtouchevent-touchpoint.html#startScreenPos