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
Constructs a PySide.QtGui.QGraphicsSceneMoveEvent .
Return type: | PySide.QtCore.QPointF |
---|
Returns the new position (i.e., the current position).
Return type: | PySide.QtCore.QPointF |
---|
Returns the old position (i.e., the position immediately before the widget was moved).
Parameters: | pos – PySide.QtCore.QPointF |
---|
Parameters: | pos – PySide.QtCore.QPointF |
---|