Event Classes

Classes used to create and handle events.

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

For more information see the Event System page.

PySide2.QtCore.QAbstractEventDispatcher

The QAbstractEventDispatcher class provides an interface to manage Qt’s event queue.

PySide2.QtCore.QBasicTimer

The QBasicTimer class provides timer events for objects.

PySide2.QtCore.QEvent

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

PySide2.QtCore.QTimerEvent

The QTimerEvent class contains parameters that describe a timer event.

PySide2.QtCore.QChildEvent

The QChildEvent class contains event parameters for child object events.

PySide2.QtCore.QDynamicPropertyChangeEvent

The QDynamicPropertyChangeEvent class contains event parameters for dynamic property change events.

PySide2.QtCore.QTimer

The QTimer class provides repetitive and single-shot timers.

PySide2.QtGui.QEnterEvent

The QEnterEvent class contains parameters that describe an enter event.

PySide2.QtGui.QInputEvent

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

PySide2.QtGui.QMouseEvent

The QMouseEvent class contains parameters that describe a mouse event.

PySide2.QtGui.QHoverEvent

The QHoverEvent class contains parameters that describe a mouse event.

PySide2.QtGui.QWheelEvent

The QWheelEvent class contains parameters that describe a wheel event.

PySide2.QtGui.QKeyEvent

The QKeyEvent class describes a key event.

PySide2.QtGui.QFocusEvent

The QFocusEvent class contains event parameters for widget focus events.

PySide2.QtGui.QPaintEvent

The QPaintEvent class contains event parameters for paint events.

PySide2.QtGui.QMoveEvent

The QMoveEvent class contains event parameters for move events.

PySide2.QtGui.QExposeEvent

The QExposeEvent class contains event parameters for expose events.

QPlatformSurfaceEvent

The QPlatformSurfaceEvent class is used to notify about native platform surface events.

PySide2.QtGui.QResizeEvent

The QResizeEvent class contains event parameters for resize events.

PySide2.QtGui.QCloseEvent

The QCloseEvent class contains parameters that describe a close event.

PySide2.QtGui.QIconDragEvent

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

PySide2.QtGui.QContextMenuEvent

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

PySide2.QtGui.QInputMethodEvent

The QInputMethodEvent class provides parameters for input method events.

PySide2.QtGui.QTabletEvent

The QTabletEvent class contains parameters that describe a Tablet event.

PySide2.QtGui.QNativeGestureEvent

The QNativeGestureEvent class contains parameters that describe a gesture event.

PySide2.QtGui.QDropEvent

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

PySide2.QtGui.QDragEnterEvent

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

PySide2.QtGui.QDragMoveEvent

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

PySide2.QtGui.QDragLeaveEvent

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

PySide2.QtGui.QHelpEvent

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

PySide2.QtGui.QStatusTipEvent

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

PySide2.QtGui.QWhatsThisClickedEvent

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

PySide2.QtGui.QActionEvent

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

PySide2.QtGui.QHideEvent

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

PySide2.QtGui.QShowEvent

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

PySide2.QtGui.QFileOpenEvent

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

The QToolBarChangeEvent class provides an event that is sent whenever a the toolbar button is clicked on macOS.

PySide2.QtGui.QShortcutEvent

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

PySide2.QtGui.QWindowStateChangeEvent

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

PySide2.QtGui.QTouchEvent

The QTouchEvent class contains parameters that describe a touch event.

PySide2.QtGui.QScrollPrepareEvent

The QScrollPrepareEvent class is sent in preparation of scrolling.

PySide2.QtGui.QScrollEvent

The QScrollEvent class is sent when scrolling.

PySide2.QtGui.QPointingDeviceUniqueId

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

PySide2.QtWidgets.QGestureEvent

The QGestureEvent class provides the description of triggered gestures.

PySide2.QtWidgets.QShortcut

The QShortcut class is used to create keyboard shortcuts.