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.
| ||source() const|
Member Function Documentation
[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.
© 2023 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.