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

MenuItem press/hover state remains after selecting an item and reopening the menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1, 5.8.0 Beta
    • 5.8.0 Alpha
    • Quick: Controls 2
    • None
    • c886facd990acf207f3164662601222babc8dde2

    Description

      Doesn't happen in 5.7.

      Seems to only apply to styles that have hover effects; doesn't happen with the default style.

      import QtQuick 2.6
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 400
          height: 280
      
          MouseArea {
              anchors.fill: parent
              onClicked: menu.open()
          }
      
          Menu {
              id: menu
      
              MenuItem {
                  text: "Test"
              }
              MenuItem {
                  text: "Test"
              }
              MenuItem {
                  text: "Test"
              }
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: