QGraphicsSceneMoveEvent¶
The
QGraphicsSceneMoveEvent
class provides events for widget moving in the graphics view framework. More…

Detailed Description¶
A QGraphicsWidget sends itself a
QGraphicsSceneMoveEvent
immediately when its local position changes. The delivery is implemented as part ofitemChange()
.It’s similar to
QMoveEvent
, but its positions,oldPos()
andnewPos()
, useQPointF
instead ofQPoint
.See also
setPos()
ItemPositionChange
ItemPositionHasChanged
-
class
QGraphicsSceneMoveEvent
¶ Constructs a
QGraphicsSceneMoveEvent
.
-
PySide2.QtWidgets.QGraphicsSceneMoveEvent.
newPos
()¶ - Return type
QPointF
Returns the new position (i.e., the current position).
-
PySide2.QtWidgets.QGraphicsSceneMoveEvent.
oldPos
()¶ - Return type
QPointF
Returns the old position (i.e., the position immediately before the widget was moved).
-
PySide2.QtWidgets.QGraphicsSceneMoveEvent.
setNewPos
(pos)¶ - Parameters
pos –
QPointF
See also