Hi,everyone,
I used embedded Qt ,the version is 4.7.3. The static compiled application can not catch keyboard event. If i used Qt as shared the keyboard worked well.
what's the reason?
Hi,everyone,
I used embedded Qt ,the version is 4.7.3. The static compiled application can not catch keyboard event. If i used Qt as shared the keyboard worked well.
what's the reason?
3
down vote
accepted
Can not believe this but setting the QWS_KEYBOARD variable as null solved the problem. Found it in the Qt developer FAQ http://developer.qt.nokia.com/faq/an...eyboard_dev_tt
export QWS_KEYBOARD=""
Well, it did not completely solve the problem since I still have to include the native keypad along with the USB keyboard.
Anyway, I am able to move to fields using the arrow/TAB keys. Text input works well. Although CAPS-LOCK and NUM-LOCK do not seem to work. SHIFT works. I am able to terminate the application by Ctrl+Alt+Bkspce. So, for the time being, I am able to input text at least.
Bookmarks