Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Reg. QT Keypress Event gives unlisted output when using e->Key()
Forum Updated to NodeBB v4.3 + New Features

Reg. QT Keypress Event gives unlisted output when using e->Key()

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 850 Views 3 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.
  • S Offline
    S Offline
    Sidii
    wrote on last edited by
    #1

    Dear All,
    I have one class derived from QLineEdit. I am getting some weird values in KeyPress Event which are not listed here:
    Key-enum

    For example:
    If I press 0 then apart from normal event i also get one extra event whose
    e->key() gives 17104904 as output

    Similarly if i press 1 then apart from normal event i also get one extra event whose
    e->key() gives 17104905 as output.

    If i try to print the text of the associated event using e->text() then it gives blank.

    Please let me know from where this extra event is coming. This event i get whenever i try to input numbers from external key pad [with values 0-9] connected to the embedded hardware. This is not a normal USB keyboard.

    Thanks
    Siddharth

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

      Hi,

      What version of Qt are you using ? On what device ? With which OS ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of Qt are you using ? On what device ? With which OS ?

        S Offline
        S Offline
        Sidii
        wrote on last edited by
        #3

        @SGaist Thanks for your reply. You changed your profile pic :)
        I am using QT 5.2 . It is an embedded device running on Intel processor. OS is scarlet Linux.

        Thanks

        Siddharth

        kshegunovK 1 Reply Last reply
        0
        • S Sidii

          @SGaist Thanks for your reply. You changed your profile pic :)
          I am using QT 5.2 . It is an embedded device running on Intel processor. OS is scarlet Linux.

          Thanks

          Siddharth

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @Sidii
          Is it possible the key mapping of that particular device/driver is somehow not correctly interpreted?

          Read and abide by the 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