The QEvent class is base class of all event classes. Event objects contain event parameters. More...
#include <qevent.h>
Inherits Qt.
Inherited by QChildEvent, QCloseEvent, QCustomEvent, QDragLeaveEvent, QDragResponseEvent, QDropEvent, QFocusEvent, QHideEvent, QKeyEvent, QMouseEvent, QMoveEvent, QPaintEvent, QResizeEvent, QShowEvent, QTimerEvent and QWheelEvent.
The main event loop of Qt fetches native window system events from the event queue, translates them into QEvent and sends the translated events to QObjects.
Generally, events come from the underlying window system, but it is also possible to manually send events through the QApplication class using QApplication::sendEvent() and QApplication::postEvent().
QObject received events by having its QObject::event() function called. The default implementation simply calls QObject::timerEvent() for timer events and ignores all other events. QWidget reimplements event() and dispatches incoming events to various event handles such as QWidget::keyPressEvent() and QWidget::mouseMoveEvent().
The basic QEvent only contains an event type parameter. Subclasses of QEvent contain additional parameters that describe the particular event.
See also: QObject::event(), QObject::installEventFilter(), QWidget::event(), QApplication::sendEvent(), QAppilcation::postEvent() and QApplication::processEvents().
None
- not an event
Timer
- regular timer events, QTimerEvent
MouseButtonPress
- mouse press, QMouseEvent
MouseButtonRelease
- mouse release, QMouseEvent
MouseButtonDblClick
- mouse press again, QMouseEvent
MouseMove
- mouse move, QMouseEvent
KeyPress
- key press (including e.g. shift), QKeyEvent
KeyRelease
- key release, QKeyEvent
FocusIn
- widget gains keyboard focus, QFocusEvent
FocusOut
- widget loses keyboard focus, QFocusEvent
Enter
- mouse enters widget's space
Leave
- mouse leaves widget's soace
Paint
- screen update necessary, QPaintEvent
Move
- widget's position changed, QMoveEvent
Resize
- widget's size changed, QResizeEvent
Create
-
Destroy
-
Show
- widget was shown on screen, QShowEvent
Hide
- widget was removed from screen, QHideEvent
Close
- widget was closed (permanently), QCloseEvent
Quit
-
Accel
- key press in child, for shortcut key handling, QKeyEvent
Wheel
- mouse wheel rolled, QWheelEvent
AccelAvailable
-
CaptionChange
-
Clipboard
-
SockAct
-
DragEnter
-
DragMove
-
DragLeave
-
Drop
-
DragResponse
- an internal event used by Qt on some platforms.
ChildInserted
-
ChildRemoved
-
LayoutHint
-
ActivateControl
-
DeactivateControl
-
User
-
Contructs an event object with a type. The file qevent.h lists all event types.
[virtual]
Destructs the event. If it was posted, it will be removed from the list of events to be posted.
Returns the event type.
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit, copyright © 1995-2000 Troll Tech, all rights reserved.
Copyright © 2000 Troll Tech | Trademarks | Qt version 2.1.0 (pre-release)
|