[Qt-interest] Ambiguous shortcuts

Deepak Chandran dchandran1 at tinkercell.com
Thu Feb 5 03:54:45 CET 2009


My main window uses common shortcuts such for
open/save/copy/paste/select-all/etc. and it contains docking widgets with
text edits and other widgets that also use
open/save/copy/paste/select-all/etc. Currently, the shortcuts always trigger
the main window's actions. I want the shortcuts (in QAction) of the
individual widgets to take priority when they have the focus. This seems to
work for some shortcuts such as copy/paste/undo/redo for QTextEdit. How are
they doing that? I tried changing the actionContext for the actions --
nothing seems to do the trick.

I think I have seen this issue before in the mailing list, but I could not
found the solution. Sorry if I am repeating a question that had been
answered before.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090204/3e8da837/attachment.html 


More information about the Qt-interest-old mailing list