QGraphicsSceneMoveEvent

Synopsis

Functions

Detailed Description

The PySide.QtGui.QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework.

A PySide.QtGui.QGraphicsWidget sends itself a PySide.QtGui.QGraphicsSceneMoveEvent immediately when its local position changes. The delivery is implemented as part of QGraphicsItem.itemChange() .

It’s similar to PySide.QtGui.QMoveEvent , but its positions, PySide.QtGui.QGraphicsSceneMoveEvent.oldPos() and PySide.QtGui.QGraphicsSceneMoveEvent.newPos() , use PySide.QtCore.QPointF instead of PySide.QtCore.QPoint .

See also

QGraphicsItem.setPos() QGraphicsItem.ItemPositionChange QGraphicsItem.ItemPositionHasChanged

class PySide.QtGui.QGraphicsSceneMoveEvent

Constructs a PySide.QtGui.QGraphicsSceneMoveEvent .

PySide.QtGui.QGraphicsSceneMoveEvent.newPos()
Return type:PySide.QtCore.QPointF

Returns the new position (i.e., the current position).

PySide.QtGui.QGraphicsSceneMoveEvent.oldPos()
Return type:PySide.QtCore.QPointF

Returns the old position (i.e., the position immediately before the widget was moved).

PySide.QtGui.QGraphicsSceneMoveEvent.setNewPos(pos)
Parameters:posPySide.QtCore.QPointF
PySide.QtGui.QGraphicsSceneMoveEvent.setOldPos(pos)
Parameters:posPySide.QtCore.QPointF