Qt does not read the keyboard correctly
-
wrote on 23 May 2016, 14:42 last edited by A Former User
Hi!
I've managed to install Qt on my raspberry pi2 and compiled a few programs. Now i had to test a new program, which includes a QLineEdit for getting inputs from the user. I have no compileerror or anything, but when i press "1", the QLineEdit shows "9", when i press "2" it shows "0", when i press 3 it shows "-", 4 shows "="...... and so on. As far as i can see there is no coherence between keypress and what the QLineEdit shows as my input. I have no idea to why. If i input any number or sentence into a texteditor(gedit), copy it and paste it into the QLineEdit, it shows whatever is in my clipboard...! I simply can't understand what i do wrong, do you have any idea to how i can resolve my issue ?
//Alex
-
Hi and welcome to devnet,
Looks like the keyboard layout of your Pi doesn't match the keyboard layout of your desktop computer.
Which are both ?
1/2