hakermania
10th May 2011, 09:04
I can have an application shortcut by e.g.:
(void) new QShortcut(Qt::CTRL + Qt::Key_Q, this, SLOT(closeapp()));
In this, by pressing Ctrl+Q while the user is focused on the application I can command the program to quit.
The issue is that the program minimizes to tray and I want to be able to have a global hotkey so as to do a specific action while being there.
Is this possible?
(void) new QShortcut(Qt::CTRL + Qt::Key_Q, this, SLOT(closeapp()));
In this, by pressing Ctrl+Q while the user is focused on the application I can command the program to quit.
The issue is that the program minimizes to tray and I want to be able to have a global hotkey so as to do a specific action while being there.
Is this possible?