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

[REG 5.12] MenuBar is stuck in highlighted state and keeps re-opening menus

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 5.12.0
    • 5.12.0 Beta 4
    • Quick: Controls 2
    • None
    • fc1832810f6c09505d9413685ed0b2d6295bea4a

    Description

      Run the example snippet from the MenuBar docs:

        import QtQuick 2.9
        import QtQuick.Window 2.2
        import QtQuick.Controls 2.3
      
        ApplicationWindow {
            id: window
            width: 320
            height: 260
            visible: true
      
            menuBar: MenuBar {
                Menu {
                    title: qsTr("&File")
                    Action { text: qsTr("&New...") }
                    Action { text: qsTr("&Open...") }
                    Action { text: qsTr("&Save") }
                    Action { text: qsTr("Save &As...") }
                    MenuSeparator { }
                    Action { text: qsTr("&Quit") }
                }
                Menu {
                    title: qsTr("&Edit")
                    Action { text: qsTr("Cu&t") }
                    Action { text: qsTr("&Copy") }
                    Action { text: qsTr("&Paste") }
                }
                Menu {
                    title: qsTr("&Help")
                    Action { text: qsTr("&About") }
                }
            }
        }
      

      Steps:

      • open a menu from the menubar
      • trigger a menu item, or click outside the menu

      Expected behavior:

      • the menubar is no longer highlighted, and hovering it won't re-open menus

      Actual behavior:

      • after a menu has been opened the first time, the menubar is stuck in highlighted mode and it keeps re-opening menus on hover -> there's seemingly no way to "get out" of the menubar

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes