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

QWidgetAction with a focusable widget causes wrong QMenuBar activation with QMainWindow & global QMenuBar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.3
    • QPA
    • None
    • 10.14
    • macOS

    Description

      When an application has a global QMenuBar plus QMainWindow with its own menu bar, Qt will incorrectly swap to the global menu when a focusable widget is placed in a menu of the QMainWindow menu bar and focused.

      Reproduction:

      1. Run attached test case
      2. Open “MainWindow menu” menu
      3. Focus the QLineEdit

      Expected: QLineEdit is focused, no other change
      Actual: The active QMenuBar is changed to the global one, which breaks the menu bar

      Attachments

        For Gerrit Dashboard: QTBUG-114382
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            csnover C S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change