Obsolete Members for QWheelEvent | Qt GUI 6.7.0
Description: The QWheelEvent class contains parameters that describe a wheel event.

- Qt 6.7
- Qt GUI
- C++ Classes
- QWheelEvent
- Qt 6.7.0 Reference Documentation

# Obsolete Members for QWheelEvent

The following members of class QWheelEvent are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

## Public Functions

`(deprecated (6.0))` Qt::MouseEventSource | source() const

## Member Function Documentation

### Qt::MouseEventSource QWheelEvent::source() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use pointingDevice() instead.

Returns information about the wheel event source.

The source can be used to distinguish between events that come from a mouse with a physical wheel and events that are generated by some other means, such as a flick gesture on a touchpad. This enum tells you from where it was synthesized; but often it's more useful to know from which device it was synthesized, so try to use pointingDevice() instead.

Note: Many platforms provide no such information. On such platforms Qt::MouseEventNotSynthesized is returned always.

See also Qt::MouseEventSource.