Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20514

Allow to disable QMdiSubWindow hotkeys

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.7.3
    • None

    Description

      I was trying to add a Ctrl-W hotkey to "File"->"Close File" in an Qt application with a QMdiArea. After hours of debugging and stepping through the Qt source code I discovered that QMdiSubWindow automatically creates a context menu and adds the same hotkey to its close menu item, which results in an ambiguous hotkey mapping.

      This is unsatisfying, because although the hotkey and "Close File" are working correctly (the document closes), the hotkey is not displayed in the "File" menu.

      I think there should be a way to disable the QMdiSubWindow context menu, or at least the hotkeys.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            axelgneiting Axel Gneiting
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes