A behavior based animation allows you to specify that when a property changes the change should be animated over time.
ProgressBar {
id: progressBar
from: 0
to: 100
Behavior on value {
NumberAnimation {
duration: 250
}
}
}
In this example if anything changes the progress bar value the change will be animated over 250ms