QEventPoint

The QEventPoint class provides information about a point in a QPointerEvent . More

Inheritance diagram of PySide6.QtGui.QEventPoint

New in version 6.0.

Synopsis

Functions

Detailed Description

class PySide6.QtGui.QEventPoint(other)

PySide6.QtGui.QEventPoint([id=-1[, device=None]])

PySide6.QtGui.QEventPoint(pointId, state, scenePosition, globalPosition)

Parameters

Constructs an invalid event point with the given id and the device from which it originated.

This acts as a default constructor in usages like QMap <int, QEventPoint >, as in qgraphicsscene_p.h.

Constructs an event point with the given pointId, state, scenePosition and globalPosition.

PySide6.QtGui.QEventPoint.State

Specifies the state of this event point.

Constant

Description

QEventPoint.Unknown

Unknown state.

QEventPoint.Stationary

The event point did not move.

QEventPoint.Pressed

The touch point or button is pressed.

QEventPoint.Updated

The event point was updated.

QEventPoint.Released

The touch point or button was released.

PySide6.QtGui.QEventPoint.device()
Return type

PySide6.QtGui.QPointingDevice

PySide6.QtGui.QEventPoint.ellipseDiameters()
Return type

PySide6.QtCore.QSizeF

PySide6.QtGui.QEventPoint.globalGrabPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.globalLastPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.globalPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.globalPressPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.grabPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.id()
Return type

int

PySide6.QtGui.QEventPoint.isAccepted()
Return type

bool

PySide6.QtGui.QEventPoint.lastNormalizedPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

Deprecated since Qt 6.0. Use globalLastPosition() instead.

Returns the normalized position of this point from the previous press or move event.

The coordinates are normalized to availableVirtualGeometry() , i.e. (0, 0) is the top-left corner and (1, 1) is the bottom-right corner.

PySide6.QtGui.QEventPoint.lastPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.lastPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.lastScenePos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.lastScreenPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.lastTimestamp()
Return type

ulong

PySide6.QtGui.QEventPoint.normalizedPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

Deprecated since Qt 6.0. Use normalizedPosition() instead.

PySide6.QtGui.QEventPoint.normalizedPosition()
Return type

PySide6.QtCore.QPointF

Returns the normalized position of this point.

The coordinates are calculated by transforming globalPosition() into the space of availableVirtualGeometry() , i.e. (0, 0) is the top-left corner and (1, 1) is the bottom-right corner.

See also

globalPosition

PySide6.QtGui.QEventPoint.__ne__(other)
Parameters

otherPySide6.QtGui.QEventPoint

Return type

bool

Returns true if this event point is not equal to other, otherwise return false.

PySide6.QtGui.QEventPoint.__eq__(other)
Parameters

otherPySide6.QtGui.QEventPoint

Return type

bool

Returns true if this event point is equal to other, otherwise return false.

PySide6.QtGui.QEventPoint.pos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

Deprecated since Qt 6.0. Use position() instead.

Returns the position of this point, relative to the widget or item that received the event.

PySide6.QtGui.QEventPoint.position()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.pressPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.pressTimestamp()
Return type

ulong

PySide6.QtGui.QEventPoint.pressure()
Return type

float

PySide6.QtGui.QEventPoint.rotation()
Return type

float

PySide6.QtGui.QEventPoint.sceneGrabPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.sceneLastPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.scenePos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.scenePosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.scenePressPosition()
Return type

PySide6.QtCore.QPointF

PySide6.QtGui.QEventPoint.screenPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.setAccepted([accepted=true])
Parameters

accepted – bool

See also

isAccepted()

PySide6.QtGui.QEventPoint.startNormalizedPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

Deprecated since Qt 6.0. Use globalPressPosition() instead.

Returns the normalized press position of this point.

PySide6.QtGui.QEventPoint.startPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.startScenePos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.startScreenPos()
Return type

PySide6.QtCore.QPointF

Note

This function is deprecated.

PySide6.QtGui.QEventPoint.state()
Return type

State

PySide6.QtGui.QEventPoint.swap(other)
Parameters

otherPySide6.QtGui.QEventPoint

PySide6.QtGui.QEventPoint.timeHeld()
Return type

float

PySide6.QtGui.QEventPoint.timestamp()
Return type

ulong

PySide6.QtGui.QEventPoint.uniqueId()
Return type

PySide6.QtGui.QPointingDeviceUniqueId

PySide6.QtGui.QEventPoint.velocity()
Return type

PySide6.QtGui.QVector2D