Infinite Qt animation (no duration specified)

I am developing a Block Breaker clone using C ++ and Qt, and I would like to know how to create an infinite (or unlimited) animation to move the ball.

Should I stick to the animation framework (by subclassing QAbstractAnimation) or consider creating and managing new threads to handle animations?

Some expert advice will be very helpful, thanks.

+4
source share
1 answer

So, I realized: using the QPropertyAnimation::setLoopCount(-1) member function makes the animation run forever until it stops with the QPropertyAnimation::stop() signal ...

+7
source

All Articles