Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Strange behavior for dutch keyboard
QtWS25 Last Chance

[Solved] Strange behavior for dutch keyboard

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.3k Views
  • 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.
  • T Offline
    T Offline
    TonnieH
    wrote on last edited by
    #1

    I'm using Qt 5.1.1 and have very strange behavior using a dutch keyboard layout. When I type the 6 for the first time in anywhere in Qt, automatically an ^ is added when I type the next character. So when I type 67, the result is 6^7. And this is only the first time. So, when I type 6767 the result is 6^767.

    In my own Qt application I experience the same behavior. Does anyone has an idea how this is caused. Previously I used Qt 4.7 and there I didn't have this problem.

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

      Hi and welcome to devnet,

      Can you try with 5.2 ?

      In between, can you print what keys you get in the keyPressEvent ? To see if there's something unusual added

      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
      • T Offline
        T Offline
        TonnieH
        wrote on last edited by
        #3

        I didn't try with 5.2 yet but captured the keyPressEvent. This is the result (text and key):
        6-> "6" 54
        7-> "^" 55 and "7" 0

        Do you think it could be solved with 5.2?

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

          I just tried with a QLineEdit and setting the locale to dutch but I could not reproduce this (5.2 on OS X)

          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
          • T Offline
            T Offline
            TonnieH
            wrote on last edited by
            #5

            I just downloaded 5.2 and tested this again. The problem seems to be solved in 5.2 on Windows as well. Thx for your help.

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

              You're welcome !

              Since you have it working now, can you also update the thread title prepending [solved] ? So other forum users may know a solution has been found :)

              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