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".