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

MenuItem doesn't get a hover if it was opened in an inactive Mac window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.4
    • Quick: Controls 2
    • None
    • macOS

    Description

      Menu does not get hover if it was shown in an inactive window processing a right mouse click

      Steps to reproduce:
      1) Launch the application
      2) Lose focus with the app
      3) Press the right key to open the menu in the application window
      4) Hover over the MenuItem
      Actual result:
      MenuItem is not highlighted
      Expected result:
      MenuItem is highlighted

      A video with a replay of the problem has been attachedĀ Screen Recording 2022-08-19 at 4.09.09 PM.mov

      import QtQuick
      import QtQuick.Controls
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Menu {
              id: menu
              title: "Menu"
              MenuItem {
                  text: "MenuItem"
              }
          }
      
          TapHandler {
              acceptedButtons: Qt.RightButton
              onTapped: menu.popup()
          }
      }
      

      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
            andrei haladok Andrei Haladok
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes