CopperSpice API
1.9.2
|
The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view system. More...
Public Methods | |
QGraphicsSceneMoveEvent () | |
~QGraphicsSceneMoveEvent () | |
QPointF | newPos () const |
QPointF | oldPos () const |
Public Methods inherited from QGraphicsSceneEvent | |
~QGraphicsSceneEvent () | |
QWidget * | widget () const |
Public Methods inherited from QEvent | |
QEvent (const QEvent &other) | |
QEvent (Type type) | |
virtual | ~QEvent () |
void | accept () |
void | ignore () |
bool | isAccepted () const |
QEvent & | operator= (const QEvent &other) |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Type | type () const |
Additional Inherited Members | |
Public Types inherited from QEvent | |
enum | Type |
Static Public Methods inherited from QEvent | |
static int | registerEventType (int hint=-1) |
The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view system.
A QGraphicsWidget sends itself a QGraphicsSceneMoveEvent immediately when its local position changes. The delivery is implemented as part of QGraphicsItem::itemChange(). It is similar to QMoveEvent but its positions, oldPos() and newPos(), use QPointF instead of QPoint.
QGraphicsSceneMoveEvent::QGraphicsSceneMoveEvent | ( | ) |
Constructs a QGraphicsSceneMoveEvent.
QGraphicsSceneMoveEvent::~QGraphicsSceneMoveEvent | ( | ) |
Destroys the QGraphicsSceneMoveEvent.
QPointF QGraphicsSceneMoveEvent::newPos | ( | ) | const |
Returns the new position (i.e., the current position).
QPointF QGraphicsSceneMoveEvent::oldPos | ( | ) | const |
Returns the old position (i.e., the position immediately before the widget was moved).