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. Annoying issue with dialog + plaintextedit + esc key causing beep() (OSX)
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
beepqdialogqplaintextedit
2 Posts 2 Posters 943 Views 2 Watching
  • 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.
  • N Offline
    N Offline
    netherby
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

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