QPropertyAnimation and QGraphicsObject.
I was look for a list of supported QPropertyAnimation for the QGraphicsObject. I need to apply a "scale animation" to the QGraphicsObject. Is it possible?
Yes, indeed. Try something like this:
@QPropertyAnimation *animation = new QPropertyAnimation(graphicsObject, "scale");
// You can also use interpolation:
Thank you. Indeed it is quite simple. can QPropertyAnimation used in combination with QAnimationGroup in order to translate and scale the same QGraphicsObject. I could see the scale property but nothing about translate. Should I go with the x and y properties?
Another questiom @QAbstractAnimation::DeleteWhenStopped@ means that the Animation itself will deallocate from the heap when it finished, or Should I care to delete the animation instance?
I think you can use the property "pos" or even "geometry" for that kind of operations instead of using "scale".
Take a look at the reference:
I never used QAnimationGroup but reading the reference it seems that it can be used there...
And yes, @QAbstractAnimation::DeleteWhenStopped@ deletes the animation when finished.
ok, thank you....