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

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 1 Posters 176 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.
  • A Offline
    A Offline
    AndyBrice
    wrote on 12 Apr 2022, 14:06 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
    • A Offline
      A Offline
      AndyBrice
      wrote on 12 Apr 2022, 14:42 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
      • A Offline
        A Offline
        AndyBrice
        wrote on 12 Apr 2022, 15:43 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

        2/3

        12 Apr 2022, 14:42

        • Login

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