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

QShortcuts not beeing activated inside QMdiArea when subwindows are focused

    XMLWordPrintable

Details

    • 198d2f6d3e1f622e1f168ff7e6aea7d1f05b80ed

    Description

      A QShortcut parented to a QMdiArea with Qt::WidgetWithChildrenShortcut context will not get triggered when a subwindow is focused.

      Attached a small code that simulates the problem.

      Definition from docs on Qt::WidgetWithChildrenShortcut:
      "The shortcut is active when its parent widget, or any of its children has focus. Children which are top-level widgets, except pop-ups, are not affected by this shortcut context."

      As subwindows are not top-level widgets, the shortcuts should be activated.

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            leobackes Leonardo Backes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes