Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to use same action of the key across any widget in the application?
Revu last edited by
I want to use the keypress event in my application.I have many mainwindow with different class.If I use a key say F1 in any mainwindow it should execute the function that I had defined for F1.In simple,how do I make that specific keypress(F1) to be global in my application??Please guide me..
giesbert last edited by
You use a QAction with a QKeySequence and set the QActions "shortcut context":http://doc.qt.nokia.com/4.7/qaction.html#shortcutContext-prop