Also in your case it's better ti use ColorAnimation as Behaviour and do
not start animations manually:
Behavior on color {
ColorAnimation { duration: 2000 }
}
MouseArea {
anchors.fill: parent
onClicked: rect.color = "green"
}
23.04.2015 13:54, Fedor Zaitsev пишет:
Mo
Your example is works for me.
23.04.2015 13:54, Fedor Zaitsev пишет:
MouseArea {
anchors.fill: parent
onClicked: anim.start()
}
PropertyAnimation {
id: anim
target: rect
property: "color"
Hi. Today I found that standard PropertyAnimation element behavior
unexpectedly. Take a look that code:
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
Rectangle {
id: rect
width: 400
height: 400
color: "red"
MouseArea {
anchors.fi