More than one keyboard shortcut for a QAction
General and Desktop
3
Posts
2
Posters
1.4k
Views
1
Watching
-
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 ?