PDA

View Full Version : Key sequence maximize program



bunjee
10th November 2009, 00:36
Hey trolls,

I would like to achieve the following.

- I have a Qt program hidden and in the tray.
- I press a special key sequence (like Ctrl + Alt).
- The application shows up.

I want to keep portability.

How can I achieve this ?

Thanks.

bunjee
11th November 2009, 20:50
Harder than it seems.

squidge
11th November 2009, 21:18
The tray is easy - QSystemTrayIcon

The hotkey isn't so easy if you want portability. Under windows you can RegisterHotKey() which lets you have a system-wide key sequence, but I've no idea about other OSs.