|  | Home · Overviews · Examples

# QWheelEvent Class Reference
[com.trolltech.qt.gui module]

The `QWheelEvent` class contains parameters that describe a wheel event. More...

Inherits `QInputEvent`.

## Detailed Description

The `QWheelEvent` class contains parameters that describe a wheel event.

Wheel events are sent to the widget under the mouse cursor, but if that widget does not handle the event they are sent to the focus widget. The rotation distance is provided by `delta`. The functions `pos` and `globalPos` return the mouse cursor's location at the time of the event.

A wheel event contains a special accept flag that indicates whether the receiver wants the event. You should call `ignore` if you do not handle the wheel event; this ensures that it will be sent to the parent widget.

The QWidget::setEnabled() function can be used to enable or disable mouse and keyboard events for a widget.

The event handler QWidget::wheelEvent() receives wheel events.

See also `QMouseEvent` and `QWidget::grabMouse`.