[SailfishDevel] Bug in Page component?

Andrey Kozhevnikov coderusinbox at gmail.com
Thu Apr 23 09:41:39 UTC 2015


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 пишет:
>      
>          MouseArea {
>              anchors.fill: parent
>              onClicked: anim.start()
>          }
>      
>          PropertyAnimation {
>              id: anim
>              target: rect
>              property: "color"
>              to: "green"
>              duration: 2000
>              running: false
>          }
>      
>          Timer {
>              id: timer
>              repeat: true
>              running: true
>          }



More information about the Devel mailing list