bbdaffy
12th March 2010, 11:06
Hi,
I am using QT 4.5. Currently I need to implement a sort of keyboard/mouse hook in my QT application. Essentially my application needs to listen for certain hotkeys even when it is not in focus. I read somewhere about RegisterRawInputDevices to allow my application to receive raw input from these devices, but in turn I need to override the WndProc method. Is there a way to do so in a QT application, or is there an equivalent way to implement the same feature using QT's API? Would be grateful for any advice. Thanks in advance.
I am using QT 4.5. Currently I need to implement a sort of keyboard/mouse hook in my QT application. Essentially my application needs to listen for certain hotkeys even when it is not in focus. I read somewhere about RegisterRawInputDevices to allow my application to receive raw input from these devices, but in turn I need to override the WndProc method. Is there a way to do so in a QT application, or is there an equivalent way to implement the same feature using QT's API? Would be grateful for any advice. Thanks in advance.