Annoying issue with dialog + plaintextedit + esc key causing beep() (OSX)

  • Escape key is set to close the QDialog. The dialog has some QPlaintextEdits in it, pressing Escape while a QPlaintextEdit has focus causes the beep() alert. So whenever you close the dialog while a text edit has focus using the Esc key you get an annoying beep().

    I set a qApp level event filter, but the beep() is issued BEFORE the Esc key event hits the event filter.. Does anyone have any ideas on how to stop it happening?

  • Lifetime Qt Champion


    Can you provide a minimal compilable example that shows the behavior ?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.