Hi,
I'm trying to use a systemwide hotkey, to open some windows from an application, running in background.

I read that Qt doesn't support this systemwide hotkeys itself, so I tried doing something with registerhotkey. What i tried is:

In the constructor of a dialog form, i put
Qt Code:
  1. RegisterHotKey(winId(), 100, MOD_CONTROL, VK_SPACE);
To copy to clipboard, switch view to plain text mode 

And i used this function, just for testing if any event gets reported to my app

Qt Code:
  1. bool winEvent(MSG * m)
  2. {
  3. QApplication::quit();
  4. return false;
  5. }
To copy to clipboard, switch view to plain text mode 

But it seems that there is never reported an event.

Where's my mistake? Maybe I understood sth. Wrong, how does this work?

Thanks.