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.
[since 5.5]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.
This function was introduced in Qt 5.5.
See also Qt::MouseEventSource.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: