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
RegisterHotKey(winId(), 100, MOD_CONTROL, VK_SPACE);
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
bool winEvent(MSG * m)
{
return false;
}
bool winEvent(MSG * m)
{
QApplication::quit();
return false;
}
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.
Bookmarks