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

QtQuick MouseArea onEntered/onExited handlers are not called when button is pressed outside of the area

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.2.0
    • None

    Description

      The documentation of QtQuick MouseArea onEntered says: "By default the onEntered handler is only called while a button is pressed." But in real onEntered is called only if the button is pressed while the mouse is inside the mouse area. The same problem applies to all hovering related properties and signal handlers e.g. onExited, pressedButtons, mouseX, mouseY, ...

      The attached example demonstrates the problem. The blue rectangle doesn't have hoverEnabled. If you press mouse button at white area and hover to blue rectangle onEntered is not called. If you press mouse button at blue rectangle everything works as expected. Red rectangle has hoverEnabled and it is there for reference of "works as expected".

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes