Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt does not read the keyboard correctly
Forum Updated to NodeBB v4.3 + New Features

Qt does not read the keyboard correctly

Scheduled Pinned Locked Moved Unsolved QtonPi
qt5.6qlineedit
2 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MunkeM Offline
    MunkeM Offline
    Munke
    wrote on last edited by A Former User
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved