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

REG: onPositionChanged() does not fire when hovering over item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.2.0 RC1
    • 5.2.0 Alpha
    • None
    • Windows 7, Mac
    • qtdeclarative/stable: 22b83ec28a7dfebe9d47ff5c98fddfdb492e4304

    Description

      onPositionChanged() does not fire when hoverEnabled is true. This used to work in 5.1.1

      import QtQuick 2.1
      import QtQuick.Window 2.1
      
      Rectangle {
          id: root
          color: "red"
          height: 70
          width: 1000
      
          MouseArea {
      	anchors.fill: parent
      	acceptedButtons: Qt.LeftButton | Qt.RightButton
      	hoverEnabled: true
      	onPositionChanged: {
      	    if (pressed) console.log("gets here in 5.2 alpha and 5.1")
      	    else console.log("on hover never gets here in 5.2 alpha but does in 5.1")
      	}
      
      	Text {
      	    id: t
      	    font.pointSize: 20
      	    anchors.fill: parent
      	    text: "THIS IS A TEST"
      	}
          }
      }
         
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes