Event Classes

These Qt Core classes are used to create and handle events.

For more information see the Event System page.

QActionEvent

The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.

QCloseEvent

The QCloseEvent class contains parameters that describe a close event.

QContextMenuEvent

The QContextMenuEvent class contains parameters that describe a context menu event.

QDragEnterEvent

The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action enters it.

QDragLeaveEvent

The QDragLeaveEvent class provides an event that is sent to a widget when a drag and drop action leaves it.

QDragMoveEvent

The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress.

QDropEvent

The QDropEvent class provides an event which is sent when a drag and drop action is completed.

QEnterEvent

The QEnterEvent class contains parameters that describe an enter event.

QExposeEvent

The QExposeEvent class contains event parameters for expose events.

QFileOpenEvent

The QFileOpenEvent class provides an event that will be sent when there is a request to open a file or a URL.

QFocusEvent

The QFocusEvent class contains event parameters for widget focus events.

QHelpEvent

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

QHideEvent

The QHideEvent class provides an event which is sent after a widget is hidden.

QHoverEvent

The QHoverEvent class contains parameters that describe a mouse event.

QIconDragEvent

The QIconDragEvent class indicates that a main icon drag has begun.

QInputEvent

The QInputEvent class is the base class for events that describe user input.

QInputMethodEvent

The QInputMethodEvent class provides parameters for input method events.

QKeyEvent

The QKeyEvent class describes a key event.

QMouseEvent

The QMouseEvent class contains parameters that describe a mouse event.

QMoveEvent

The QMoveEvent class contains event parameters for move events.

QNativeGestureEvent

The QNativeGestureEvent class contains parameters that describe a gesture event.

QPaintEvent

The QPaintEvent class contains event parameters for paint events.

QResizeEvent

The QResizeEvent class contains event parameters for resize events.

QScrollEvent

The QScrollEvent class is sent when scrolling.

QScrollPrepareEvent

The QScrollPrepareEvent class is sent in preparation of scrolling.

QShortcutEvent

The QShortcutEvent class provides an event which is generated when the user presses a key combination.

QShowEvent

The QShowEvent class provides an event that is sent when a widget is shown.

QStatusTipEvent

The QStatusTipEvent class provides an event that is used to show messages in a status bar.

QTabletEvent

The QTabletEvent class contains parameters that describe a Tablet event.

QTouchEvent

The QTouchEvent class contains parameters that describe a touch event.

QWhatsThisClickedEvent

The QWhatsThisClickedEvent class provides an event that can be used to handle hyperlinks in a "What's This?" text.

QWheelEvent

The QWheelEvent class contains parameters that describe a wheel event.

QWindowStateChangeEvent

The QWindowStateChangeEvent class provides the window state before a window state change.

QGestureEvent

The QGestureEvent class provides the description of triggered gestures.

QShortcut

The QShortcut class is used to create keyboard shortcuts.

QAbstractEventDispatcher

Interface to manage Qt's event queue

QBasicTimer

Timer events for objects

QEvent

The base class of all event classes. Event objects contain event parameters

QTimerEvent

Contains parameters that describe a timer event

QChildEvent

Contains event parameters for child object events

QDynamicPropertyChangeEvent

Contains event parameters for dynamic property change events

QTimer

Repetitive and single-shot timers