How to get keyboard scan code?
-
Is there any way to get the scan code from the key event?
Colman
-
-
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
-
Just forgot to tell you, it is run on qt-embedded for Linux, the nativeScanCode always return 0.
Colman
-
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.