coin3d / quarter

Coin GUI binding for Qt
BSD 3-Clause "New" or "Revised" License
36 stars 26 forks source link

Implemented workaround for Qt bug QTBUG-91556 - reversed QWheelEvent axis when ALT key is pressed #66

Closed githubuser0xFFFF closed 2 months ago

githubuser0xFFFF commented 2 months ago

The pull request implements a workaround for Qt issue QTBUG-91556.

In Quarter widget the ALT key is used, to temporary switch the mode from interaction to navigation. In the current state, navigation works, except for zooming using the mouse wheel. This is caused by the mentioned issue. The pull request works around the issue by detecting if ALT key is down and if delta().y is 0 - this indicates that the axes are reversed.

VolkerEnderlein commented 2 months ago

Thanks for your contribution.