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() ,使用 PySide.QtCore.QPointF 而不是 PySide.QtCore.QPoint .
另请参阅
QGraphicsItem.setPos() QGraphicsItem.ItemPositionChange QGraphicsItem.ItemPositionHasChanged
| 返回类型: | PySide.QtCore.QPointF |
|---|
Returns the new position (i.e., the current position).
| 返回类型: | PySide.QtCore.QPointF |
|---|
Returns the old position (i.e., the position immediately before the widget was moved).
| 参数: | pos – PySide.QtCore.QPointF |
|---|
| 参数: | pos – PySide.QtCore.QPointF |
|---|