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

hovered property is true even when under a popup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1
    • 5.7
    • Quick: Controls 2
    • None
    • 92032bee2923024d126bc20929f79abd459cae49

    Description

      An example of where this is an issue is ToolTip; the tooltip shows up even when the menu is open:

      import QtQuick 2.7
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
      
          Menu {
              id: menu
      
              MenuItem {
                  text: "Item 1"
              }
              MenuItem {
                  text: "Item 2"
              }
              MenuItem {
                  text: "Item 3"
              }
          }
      
          Button {
              text: "Button"
              hoverEnabled: true
              anchors.centerIn: parent
              onClicked: menu.open()
              onHoveredChanged: print("hovered", hovered)
      
              ToolTip.text: "ToolTip"
              ToolTip.visible: hovered
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              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