Mouse wheel event's angleDelta().y() always 0 with Alt key modifier
Tobias Megies
megies at geophysik.uni-muenchen.de
Fri Nov 25 09:26:33 GMT 2022
Oh, should've thought of that. Thanks a lot for the quick help.
And ah, looking at that second bug report you listed (sorry, I didn't
find these looking for previous reports), I realize I also used to have
"delta()" and just followed the recommendations to replace it with
"angleDelta().y()".
Thanks!
Tobias
On 25/11/2022 10:10, Florian Bruhin wrote:
> On Fri, Nov 25, 2022 at 10:01:39AM +0100, Tobias Megies wrote:
>> When Alt key is held down, mouse wheel events always report 0 for
>> "angleDelta().y()", i.e. it is impossible to tell in which direction the
>> mouse wheel was scrolled. Not sure if Alt is the only affected modifier, in
>> any case some other common keys like shift or control are not affected.
>
> It's a Qt problem, or rather probably intended Qt feature.
> Pressing Alt and scrolling leads to a horizontal scroll:
>
> https://bugreports.qt.io/browse/QTBUG-91556
> https://bugreports.qt.io/browse/QTBUG-78550
>
> Florian
>
--
EMail: tobias.megies at lmu.de
WWW: https://www.geophysik.uni-muenchen.de
Geophysikalisches Observatorium
Ludwigshöhe 8
82256 Fürstenfeldbruck
Tel: +49 (0) 89 2180-73981
Fax: +49 (0) 89 2180-73970
Ludwig-Maximilians-Universität
Department für Geo- und Umweltwissenschaften
Sektion Geophysik
Theresienstrasse 41/IV
80333 München
Tel: +49 (0) 89 2180-4237
Fax: +49 (0) 89 2180-4205
More information about the PyQt
mailing list