How to use same action of the key across any widget in the application?
-
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..
Thank You -
You use a QAction with a QKeySequence and set the QActions "shortcut context":http://doc.qt.nokia.com/4.7/qaction.html#shortcutContext-prop