Mouse wheel event's angleDelta().y() always 0 with Alt key modifier

Florian Bruhin me at
Fri Nov 25 09:10:02 GMT 2022

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:


            me at | |
       GPG: 916E B0C8 FD55 A072 |
             I love long mails! |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the PyQt mailing list