Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103590 QKeySequenceEdit: not blocking quit on Mac
  3. QTBUG-103363

QKeySequenceEdit: Block processing hotkeys while assigning hotkeys.

    XMLWordPrintable

Details

    • All
    • 2996ca031efcd97ef9866186ae53e96ed75c9fbf

    Description

      As a user,

      I would like QKeySequenceEdit to block the processing of hotkeys while recording,

      so that the new hotkey being recorded is not getting handles (e.g. cmd+q does not close the Qt app in this mode).

       

      Is this already possible to achieve? I think that modal dialogs work ok for example. Otherwise, my only idea is to register an event filter on my main window to swallow the key presses, hotkeys, etc, and then remove that on editingFinished. But QKeySequenceEdit (or QLineEdit for that matter) does not seem to offer a signal for "editing started".

       

      How would you advise me to achieve my use case explained above? Thanks.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            lpapp Laszlo Papp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes