Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Annoying issue with dialog + plaintextedit + esc key causing beep() (OSX)
netherby last edited by
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?
Can you provide a minimal compilable example that shows the behavior ?