Hi I have a SequentialAnimation containing a number of ColorAnimations
in an infinite loop. I want to update the duration properties in the
ColorAnimations with a slider.
ie. duration : sliderHorizontal1.value
This works only after I restart the animation. I want the animation to
change speeds while it is running as I move the slider. Is this
possible? A snippet of my current code is below.
Thanks
Slider {
id: sliderHorizontal1
x: 55
y: 425
minimumValue: 100
value: 100
maximumValue: 2000
onValueChanged: text1.text=Math.round(value);
}
SequentialAnimation {
loops:Animation.Infinite
id: playbanner
ColorAnimation {
id:cA1
target: rect1
property: "color"
from: "black"
to: "white"
duration: sliderHorizontal1.value
}
ColorAnimation {
target: rect1
property: "color"
from: "white"
to: "black"
duration: sliderHorizontal1.value
}
ColorAnimation {
target: rect2
property: "color"
from: "black"
to: "white"
duration: sliderHorizontal1.value
}
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest