[Interest] QML animation flicker
Jarno Seppänen
jseppanen at gmail.com
Fri Oct 12 23:10:36 CEST 2012
Hi,
I'm trying out Qt 5.0.0-beta1, but I'm seeing some unexpected
animation flicker. I have a rotating rectangle which starts to flicker
during a simultaneous ColorAnimation, without it the rotation is
smooth. Is this an issue with my setup and should I change my QML code
somehow? I've gotten similar results on two Ubuntu laptops, running
11.04 and 12.04.
------------------------ start code ------------------------
import QtQuick 2.0
import QtGraphicalEffects 1.0
FocusScope {
SequentialAnimation {
loops: Animation.Infinite; running: true
PauseAnimation { duration: 3000 }
ColorAnimation { target: glow; property: "color"; to:
"#444444"; duration: 3000; easing.type: Easing.InOutQuad }
PauseAnimation { duration: 3000 }
ColorAnimation { target: glow; property: "color"; to: "black";
duration: 3000; easing.type: Easing.InOutQuad }
}
RadialGradient {
gradient: Gradient {
GradientStop { id: glow; position: 0.0; color: "black" }
GradientStop { position: 0.5; color: "black" }
}
anchors.fill: parent
}
Rectangle {
width: 3000
height: 100
color:"green"
NumberAnimation on rotation {
from:0
to:360
loops:-1
duration:3000
}
anchors.centerIn:parent
}
}
------------------------ end code ------------------------
Regards,
Jarno
More information about the Interest
mailing list