import QtQuick 1.0
Rectangle
{
id: rect
width: 100; height: 100
color: "red"
property int hh:0
Text
{
text: hh
}
MouseArea
{
anchors.fill: parent
onPressed:
{
animation.start()
console.log(hh)
}
NumberAnimation
{
id: animation
target: rect
property: "hh"
to: 50;
duration: 1000
}
}
}
Nothing gets printed on the console. I know that the hh
is getting changed but I want to see its printed value on the console at the same time. What to do about it?