CopperSpice API  1.9.2
QGraphicsSceneMoveEvent Class Reference

The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view system. More...

Inheritance diagram for QGraphicsSceneMoveEvent:
QGraphicsSceneEvent QEvent

Public Methods

 QGraphicsSceneMoveEvent ()
 
 ~QGraphicsSceneMoveEvent ()
 
QPointF newPos () const
 
QPointF oldPos () const
 
- Public Methods inherited from QGraphicsSceneEvent
 ~QGraphicsSceneEvent ()
 
QWidgetwidget () 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)
 

Detailed Description

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.

See also
QGraphicsItem::setPos(), QGraphicsItem::GraphicsItemChange

Constructor & Destructor Documentation

QGraphicsSceneMoveEvent::QGraphicsSceneMoveEvent ( )

Constructs a QGraphicsSceneMoveEvent.

QGraphicsSceneMoveEvent::~QGraphicsSceneMoveEvent ( )

Destroys the QGraphicsSceneMoveEvent.

Method Documentation

QPointF QGraphicsSceneMoveEvent::newPos ( ) const

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

See also
oldPos(), QGraphicsItem::setPos()
QPointF QGraphicsSceneMoveEvent::oldPos ( ) const

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

See also
newPos(), QGraphicsItem::setPos()