QLineEdit doesn't recognize {,},[ or ] characters from German keyboard on Mac
-
A customer on macOS 12 says that curly and square bracket characters typed on his German keyboard don't appear in QLineEdit widgets. Most other characters are ok.
He can paste them in, but he can't type them.
QTableWidgetItem widgets work as expected.
If he changes his keyboard to US layout, then he can type these characters.
I'm not doing anything clever with these QLineEdits (no event filters etc).
I looked through the Qt bug database, but couldn't find anything.
My application is built with Qt 5.15.2.
Any ideas?
-
I overrode KeyPressEvent(QKeyEvent* event) and the QLineEdit doesn't seem to be recieving a keypress event when {} or [] characters are pressed on a German keyboard.
-
Found it. I was overriding Alt+6, Alt+7 and Alt+8 as application shortcuts. It turns out that these are {, [ and ] on a German Mac keyboard. So not a Qt bug!
1/3