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

MenuItem state with checkable MenuItem faulty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.11.3, 5.12.0 Beta 3
    • Fix Version/s: 5.12.0
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      MacOS Mojave
    • Platform/s:
      macOS
    • Commits:
      fc1832810f6c09505d9413685ed0b2d6295bea4a (qt/qtquickcontrols2/5.12.0)

      Description

      I have a problem with Qt 5.12.0 Beta 3 with checkable MenuItems on MacOS Mojave:
      (Unable to reproduce this with Qt 5.11.1)

      ApplicationWindow {
          id: window
          visible: true
          width: 1280; height: 720
      
          menuBar: MenuBar {
              Menu {
                  title: "MainMenu"
                  MenuItem { text: "Cut"; checkable: true }
                  MenuItem { text: "Copy"; checkable: true }
                  MenuItem { text: "Paste"; checkable: true}
              }
          }
      }
      

       When opening the menu and clicking either MenuItem, the MainMenu popup closes, but the button remains "active", though closed. You have to click the button twice to open the menu again ("hidden close click" + click to open again).

      Either the popup should remain open (preferable actually in my case, but this is maybe a separate feature request), or the button needs to be non-active.

      See attached screenshots.

        Attachments

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

          Activity

            People

            Assignee:
            mitch_curtis Mitch Curtis
            Reporter:
            bartel Bartel Eerdekens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes