Set value after animation
-
Hello dear community,
I have the following problem:
I have a property integer x,
which also has a "behavior on x" function which defines that if the value changes,
a "property animation" displays the change.Now after this animation I need this value to be back at 0 but it seems I can't change it anywhere with this animation,
but I can change the integer value if the property animation is not declared.Is there any possibility to change the value of x automatically back to zero after the animation duration ?
Thank you in advance
Kind regards
-
@YB-2B said in Set value after animation:
Is there any possibility to change the value of x automatically back to zero after the animation duration ?
Not directly but you can connect to QPropertyAnimation.:finished().
-
@Christian-Ehrlicher Thank you