PDA

View Full Version : Qt Capture windows events outside the application



flair-kun
15th December 2009, 01:00
Hi,

I have a Qt application in which i would like to listen to the event <Ctrl + R> even if the application is not focussed i.e, even if the user is using some other application, can someone tell me how this can be done.

I am looking at winEvent but i am unable to figure out how to use it, is there some example code that i can look at?

Thanks a lot!

wirasto
15th December 2009, 04:12
You mean "hotkey" ? Try QxtGlobalShortcut from http://libqxt.org/

aamer4yu
15th December 2009, 04:32
I have a Qt application in which i would like to listen to the event <Ctrl + R> even if the application is not focussed i.e, even if the user is using some other application, can someone tell me how this can be done
I guess you will need system level hooks. This will be dependant on OS

flair-kun
15th December 2009, 23:56
I think the QxtGlobalShortcut is what i need, thanks a lot for pointing it out to me :)