QGraphicsSceneMoveEvent Class Reference

[QtGui module]

该QGraphicsSceneMoveEvent类提供了小部件事件在移动图形视图框架。More…

继承QGraphicsSceneEvent

Methods

  • __init__ (self)
  • QPointF newPos (self)
  • QPointF oldPos (self)

Detailed Description

该QGraphicsSceneMoveEvent类提供了小部件事件在移动图形视图框架。

A QGraphicsWidget立即发送本身就是一个QGraphicsSceneMoveEvent时,其局部位置的变化。输送被实现为部分QGraphicsItem.itemChange( ) 。

它类似于QMoveEvent,但它的位置,oldPos()和newPos( ) ,使用QPointF而不是QPoint


Method Documentation

  1. QGraphicsSceneMoveEvent.__init__ (self)

构造一个QGraphicsSceneMoveEvent

  1. QPointF QGraphicsSceneMoveEvent.newPos (self)

[

返回新的位置(即当前的位置) 。

]($docs-qpointf.html)

See also oldPos()和QGraphicsItem.setPos( ) 。

  1. QPointF QGraphicsSceneMoveEvent.oldPos (self)

[

返回旧位置(即位置立刻小部件被移到前) 。

]($docs-qpointf.html)

See also newPos()和QGraphicsItem.setPos( ) 。