PDA

View Full Version : How to override system shortcut left Alt+Space



MasterBLB
28th March 2010, 10:42
Hi Brothers

As in topic-how to do it?
Reimplementing QApplication::event(),QApplication::winEventFilter (),installing an event filter on QAbstractEventDispatcher::instance() didn't help :(

squidge
28th March 2010, 11:09
On Windows, you would capture the WM_SYSCOMMAND windows message. If WParam == SC_KEYMENU, then ALT+SPACE has been pressed. You can then process that message yourself or allow normal processing by passing it on.

You would capture the message typically by overriding WndProc. I'm not sure if there's a Qt way of doing that.

MasterBLB
28th March 2010, 11:28
It seems to be,this is that QApplication::winEventFilter ()
I tried that way,but I used WM_SYSKEYDOWN instead of WM_SYSCOMMAND.I gonna to check this out.

Thanks for the Brother hint fatjucymole! ;)