Do stuff after behavior with animation is finished in qml
QML and Qt Quick
4
Posts
3
Posters
3.0k
Views
1
Watching
-
Hi,
I have behavior on a property in qml and i want to do a stuff after the animation is done (is finished).
I have used Behaviour with states.
@
Behavior on height {
SmoothedAnimation{
duration: 250;
}
}@
How can i do that? -
@
Behavior on height {
SmoothedAnimation{
duration: 250;
onRunningChanged: {
if (!running) {
// your code here
}
}
}
}
@ -
So much JS? Both your snippet and mine have exactly 1 line of JS code :P