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

regression in certain MouseArea hover use cases

    XMLWordPrintable

Details

    • f7e462ba153ff33a02cad903efc8662f1eacd225, cd7c5f94a (dev), 4271d4586 (6.6), 66610bcb5 (tqtc/lts-6.5)

    Description

      After f728a514abdf59e2ac556eef027a69d9f21db4b2 ( https://codereview.qt-project.org/#/c/127723/ ) here is a use case which doesn't work anymore:

      import QtQuick 2.7
      
      Item {
          width: 200
          height: 200
          MouseArea {
              id: ma
              property string str: "foo!"
              width: 150; height: 150
              hoverEnabled: true
      
              Rectangle {
                  anchors.fill: parent
                  color: ma.containsMouse ? "lightsteelblue" : "gray"
              }
              Text {
                  text: ma.str // not OK
      //            text: "foo!" // OK
              }
          }
      }
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: