Making widgets ignore modifiers
Unsolved
General and Desktop
-
Dear Forum,
I am writing an application where keyboard modifiers ALT or CTRL globally put the application in a different mode. When these modifiers are pressed I'd still like the user to be able to use widgets normally. However, entering text in widgets (QDoubleSpinBox) starts to behave weirdly when the modifiers are pressed as they change the input behavior. In summary I'd like to achieve the following:
1.) Modifiers are always captured globally and not grabbed by the widget (currently I have a root widget with a keyPressEvent() that captures them)
2.) Widgets behave as if no modifiers (CTRL or ALT) were pressed
Any hints on how I could achieve this behaviour would be very welcome.
Thanks,
Eddy