tags:

views:

43

answers:

1

Hi

I'd like to register a system shortcut for my application. For example:

  • Shortcut 1: minimize application to tray
  • Shortcut 2: open my minimized application
  • Shortcut 3: do some function...

I want to do each without having focus in my application

is it possible?

A: 

I don't think it's possible to send keys to your app when it doesn't have focus with Qt. You have to handle that at the OS level. On Windows I use AutoHotKey for this.

Jesse Aldridge