Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Strange behavior for dutch keyboard
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.
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
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?
I just tried with a QLineEdit and setting the locale to dutch but I could not reproduce this (5.2 on OS X)
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.
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 :)