PDA

View Full Version : floating/tabbed DockWidgets and hotkeys



tuli
20th October 2012, 08:47
hi,

i have a widget that has a hotkey. THe widget is now assigned to a QDockWIdget.
The hotkeys work fine if the DockWidget is docked and not tabbed.

If the DockWidget is floating however, the hotkeys will not work.
Same thing when multiple DockWidgets have been "tabified".

I would expect the DockWidget that currently has the focus to receive the hotkeys.
What am i expected to expect and what can i do about this?

have a nice weeekend,

tuli
20th October 2012, 15:18
ok, i just noticed Qt emmits this at runtime:


Ambiguous shortcut overload
.
true, there are several of these widgets open, but i would have assumed that only the top one (current focus) receives the shortcut?