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

MouseArea: containsMouse property is not reset to false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.1, 6.3.1, 6.4.0 Beta4
    • None

    Description

      containsMouse property of the first mouse area is not change after release pressed mouse on second overlapped mouse area.

          MouseArea
          {
              anchors.top: parent.top
              anchors.left: parent.left
              width: parent.width * 0.75
              height: parent.height * 0.75
              hoverEnabled: true
              onContainsMouseChanged: console.log("contains mouse changed", containsMouse)
      
              Rectangle {
                  anchors.fill: parent
                  color: "yellow"
              }
          }
      
          MouseArea
          {
              anchors.centerIn: parent
              width: parent.width * 0.75
              height: parent.height * 0.75
              hoverEnabled: true
      
              onPressed:
              {
                  mouse.accepted = false
              }
      
              Rectangle {
                  anchors.fill: parent
                  color: "green"
              }
          }
      

      Attachments

        Issue Links

          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
              stas_tokmakou Stas Tokmakou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes