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. QLineEdit doesn't recognize {,},[ or ] characters from German keyboard on Mac
Qt 6.11 is out! See what's new in the release blog

QLineEdit doesn't recognize {,},[ or ] characters from German keyboard on Mac

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 1 Posters 369 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.
  • AndyBriceA Offline
    AndyBriceA Offline
    AndyBrice
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • AndyBriceA Offline
      AndyBriceA Offline
      AndyBrice
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • AndyBriceA Offline
        AndyBriceA Offline
        AndyBrice
        wrote on last edited by
        #3

        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 Reply Last reply
        2

        • Login

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