How to stop motion of animation
i want to stop motion of my animation when it collides with something by the time. but i doesn't stop
@ QPropertyAnimation *anim=new QPropertyAnimation(this,"pos");
in my code when i press one key of keyboard my animation go forward and i want when it collides with something(_bar) it stops but it doesn't occur. why ? please help me and say me how i can stop motion of animation by the time.