Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
-
56aa9370dbafa8ee431dd2ffabef309aae01ec2f
Description
Running the code below, onPositionChanged will be called once before the onPressed.
This is unexpected, and a problem when the onPressed contains code preparing for the
subsequent drag
events.
Rectangle { width: 500 height: 500 MouseArea { id: mouseArea anchors.fill: parent onPressed: print("Pressed (" + mouse.x + "," + mouse.y+")") onReleased: { print("Released (" + mouse.x + "," + mouse.y+")"); print("\n"); } onPositionChanged: print("Position changed (" + mouse.x + "," + mouse.y+")") } }