Event Classes

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

For more information see the Event System page.

QAbstractEventDispatcher

Interface to manage Qt's event queue

QActionEvent

Event that is generated when a QAction is added, removed, or changed

QBasicTimer

Timer events for objects

QChildEvent

Contains event parameters for child object events

QChildWindowEvent

Contains event parameters for child window changes

QCloseEvent

Contains parameters that describe a close event

QContextMenuEvent

Contains parameters that describe a context menu event

QDragEnterEvent

Event which is sent to a widget when a drag and drop action enters it

QDragLeaveEvent

Event that is sent to a widget when a drag and drop action leaves it

QDragMoveEvent

Event which is sent while a drag and drop action is in progress

QDropEvent

Event which is sent when a drag and drop action is completed

QDynamicPropertyChangeEvent

Contains event parameters for dynamic property change events

QEnterEvent

Contains parameters that describe an enter event

QEvent

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

QExposeEvent

Contains event parameters for expose events

QFileOpenEvent

Event that will be sent when there is a request to open a file or a URL

QFocusEvent

Contains event parameters for widget focus events

QGestureEvent

The description of triggered gestures

QHelpEvent

Event that is used to request helpful information about a particular point in a widget

QHideEvent

Event which is sent after a widget is hidden

QHoverEvent

Contains parameters that describe a mouse event

QIconDragEvent

Indicates that a main icon drag has begun

QInputEvent

The base class for events that describe user input

QInputMethodEvent

Parameters for input method events

QKeyEvent

Describes a key event

QMouseEvent

Contains parameters that describe a mouse event

QMoveEvent

Contains event parameters for move events

QNativeGestureEvent

Contains parameters that describe a gesture event

QPaintEvent

Contains event parameters for paint events

QPlatformSurfaceEvent

Used to notify about native platform surface events

QPointingDevice

Describes a device from which mouse, touch or tablet events originate

QPointingDeviceUniqueId

Identifies a unique object, such as a tagged token or stylus, which is used with a pointing device

QResizeEvent

Contains event parameters for resize events

QScrollEvent

Sent when scrolling

QScrollPrepareEvent

Sent in preparation of scrolling

QShortcut

Used to create keyboard shortcuts

QShortcutEvent

Event which is generated when the user presses a key combination

QShowEvent

Event that is sent when a widget is shown

QStatusTipEvent

Event that is used to show messages in a status bar

QTabletEvent

Contains parameters that describe a Tablet event

QTimer

Repetitive and single-shot timers

QTimerEvent

Contains parameters that describe a timer event

QTouchEvent

Contains parameters that describe a touch event

QWhatsThisClickedEvent

Event that can be used to handle hyperlinks in a "What's This?" text

QWheelEvent

Contains parameters that describe a wheel event

QWindowStateChangeEvent

The window state before a window state change

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.