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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.8.0 Alpha
    • Fix Version/s: 5.7.1, 5.8.0 Beta
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Commits:
      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes