How to get keyboard scan code?
-
wrote on 7 Jan 2011, 03:03 last edited by
Is there any way to get the scan code from the key event?
Colman
-
wrote on 7 Jan 2011, 04:13 last edited by
I install a event filter to catch the button scan code, but Qt never send a code that it cannot map to the standard PC key code. For eaxmple, it does not generate a event with scan code 0x240, 0x11F, etc. May be it does not generate event with scan code larger than 0x100. How can I get the events for those scan code?
Colman
-
wrote on 7 Jan 2011, 04:33 last edited by
Just forgot to tell you, it is run on qt-embedded for Linux, the nativeScanCode always return 0.
Colman
-
wrote on 7 Jan 2011, 13:27 last edited by
Colman. I can't remember where but I read about what a thing was a similar issue (some key events that were always processed by "qt" and would never make to the event loops). The solutions was to deal with other event functions on QApplication, like:
http://doc.qt.nokia.com/latest/qapplication.html#qwsEventFilter
http://doc.qt.nokia.com/latest/qapplication.html#x11EventFilterHave you tried those?
There was some other approach too but I can't remember what it was.
1/5