[Qt-interest] How install shortcuts for multiple widgets?
Wilhelm
wilhelm.meier at fh-kl.de
Tue Feb 8 22:06:53 CET 2011
Hi all,
what is the "right" way to install shortcuts (say Ctrl-S) without
getting the "... ambiguous shortcut ..." error?
If I have an application menu with an action using shortcut Ctrl-S and
e.g. several other widgets which also install this shortcut I get the
above error.
So the question is, how to setup up an applications-wide shortcut Ctrl-S
that saves a file A if triggered in a texteditor widget A if that has
focus, or saves a file B if triggered in a texteditor widget B if that
has focus?
I tried using the shortcut-context and setting it to WidgetContext but
without luck.
Any hints?
--
Wilhelm
More information about the Qt-interest-old
mailing list