CopperSpice API  1.9.2
QMoveEvent Class Reference

The QMoveEvent class contains event parameters for move events. More...

Inheritance diagram for QMoveEvent:
QEvent

Public Methods

 QMoveEvent (const QPoint &pos, const QPoint &oldPos)
 
const QPointoldPos () const
 
const QPointpos () 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
 

Friends

class QApplication
 
class QCoreApplication
 

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 QMoveEvent class contains event parameters for move events.

Move events are sent to widgets that have been moved to a new position relative to their parent.

The event handler QWidget::moveEvent() receives move events.

See also
QWidget::move(), QWidget::setGeometry()

Constructor & Destructor Documentation

QMoveEvent::QMoveEvent ( const QPoint pos,
const QPoint oldPos 
)

Constructs a move event with the new and old widget positions, pos and oldPos respectively.

Method Documentation

const QPoint & QMoveEvent::oldPos ( ) const
inline

Returns the old position of the widget.

const QPoint & QMoveEvent::pos ( ) const
inline

Returns the new position of the widget. This excludes the window frame for top level widgets.