I recently upgraded QT from QT5.12.9 to QT5.15.2, and the compiler reported error C4996: 'QWheelEvent::pos': Use position()
Reson and Solution:
It’s easy to see that the new version has changed QWheelEvent::pos
to QWheelEvent::position
, and the code changes pos to position.