I have a QDockeWidget, which contains a custom widget that receives keyboard shortcuts, either by addAction() or by using QKeySequence directly.


That works fine, as long as the QDockWidget is floating. But as when it is docked, no shortcuts are received.


I have overridden the event() handler, and there it *does* receive raw keyboard events ... so in theory I could with some magic check in the event handler for my shortcuts.


What is the reason for this?