Hi,
I have an action with a keyboard shortcut in my main window that starts an operation called "process". But now I made a QDialog that pops up when a button is pressed, and in that dialog I set the value that the process operation in the main window needs. So for this I made the dialog modeless but while I'm on the dialog the keyboard shortcuts of the mainwindow don't work until I actually click on the mainwindow again. Since I vary the parameter in the QDialog I would like to not need to always click on the mainwindow after setting a value in the dialog to start a "process".
I tried doing:
Qt Code:
//In main window ... ... myDialog->addAction(processAction);To copy to clipboard, switch view to plain text mode
But this didn't work.
Is there a way to do this??
Thanks.
Bookmarks