Shortcuts and widget keyPressEvent
Solved
General and Desktop
-
Hello,
I'm trying to figure out how to override a key shortcut. The delete key press should have different behavior if a particular widget has focus. The overloaded keyPressEvent isn't called for that derived widget because it is getting channeled to a shortcut action. If the shortcut action is disabled then the keyPessEvent is called as expected. I'm hoping there is a cleaner way than trying to manage the shortcut enable.
TIA