Code:
import QtQuick 1.0 Rectangle { width: 100; height: 100 color: "red" MouseArea { anchors.fill: parent onPressed: { NumberAnimation { target: parent.x to: 50; duration: 1000 } } } }
I expect this code to shift the x position of the rectangle on the button press event, but this does nothing.
Where am I going wrong?
