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

MouseArea mouseX/Y not reported under Scenegraph unless mouse is pressed

    XMLWordPrintable

Details

    • 88d6afdfc42e0de7eebcd73ad617053c1669257d

    Description

      Running the attached qml in qmlviewer and qmlscene shows two different behaviours. The Text element shows the values of hoverEnabled, containsMouse, pressed and mouseX,mouseY respectively.

      In qmlviewer, the text shows Box the mouseX and mouseY co-ordinates regardless of the value of pressed
      In qmlscene, the text shows Box the mouseX and mouseY co-ordinates only if the value of pressed is "true"

      The documentation states:

      If hoverEnabled is true then these properties will be valid when:
      
          * no button is pressed, but the mouse is within the MouseArea (containsMouse is true).
          * a button is pressed and held, even if it has since moved out of the area.
      
      

      Attachments

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

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes