QMoveEvent Class Reference

#include <qevent.h>

Inheritance diagram for QMoveEvent:

Inheritance graph
[legend]
Collaboration diagram for QMoveEvent:

Collaboration graph
[legend]
List of all members.

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()

Definition at line 297 of file qevent.h.

Public Member Functions

 QMoveEvent (const QPoint &pos, const QPoint &oldPos)
 ~QMoveEvent ()
const QPointpos () const
const QPointoldPos () const

Protected Attributes

QPoint p
QPoint oldp

Friends

class QApplication
class QCoreApplication


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.

Definition at line 1098 of file qevent.cpp.

01099     : QEvent(Move), p(pos), oldp(oldPos)
01100 {}

QMoveEvent::~QMoveEvent (  ) 

Definition at line 1105 of file qevent.cpp.

01106 {
01107 }


Member Function Documentation

const QPoint & QMoveEvent::pos (  )  const [inline]

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

Definition at line 303 of file qevent.h.

References p.

00303 { return p; }

const QPoint & QMoveEvent::oldPos (  )  const [inline]

Returns the old position of the widget.

Definition at line 304 of file qevent.h.

00304 { return oldp;}


Friends And Related Function Documentation

friend class QApplication [friend]

Reimplemented from QEvent.

Definition at line 307 of file qevent.h.

friend class QCoreApplication [friend]

Reimplemented from QEvent.

Definition at line 308 of file qevent.h.


Member Data Documentation

QPoint QMoveEvent::p [protected]

Definition at line 306 of file qevent.h.

QPoint QMoveEvent::oldp [protected]

Definition at line 306 of file qevent.h.


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 18:29:22 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1