More than one keyboard shortcut for a QAction
-
I want to have two (or more) keyboard shortcuts for the same action. I can do this on Linux with Xlib, but I have failed so far with Qt. I tried to have two setShortcut commands, but only the second one had any effect. When I tried to use a QShortcut, I got nowhere. Does anyone know how to do this?
-
Hi,
Are your thinking about "this":http://qt-project.org/doc/qt-5/qaction.html#setShortcuts ?
-
Yes, using setShortcuts (plural) did exactly what I needed. Many thanks.