PDA

View Full Version : How do I have some system-wide global hotkeys?



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?

high_flyer
11th May 2011, 09:08
This is something you will have to conffigure on system/desktop manager level.
Not something you can do in your own application.