PDA

View Full Version : QGraphicsRectItem animation



mvbhavsar
30th August 2011, 05:45
I am working on program where some animation is required.
I am able to do QPropertyAnimation to QGraphicsTextItem but not other items like QGraphicsRectItem. This has forced me to create a QGraphicsObject class and override it's paint method. But now the question is now I am not able to use directly QGraphicsRectItem in my code. Any suggession how to animate QGraphicsRectItem using QPropertyAnimation.


Thanks

Manish

Lykurg
30th August 2011, 06:32
Have you read the documentation about the animation framework, especially "Animations and the Graphics View Framework"? Have you subclasses the rect item and inherit QObject?

mvbhavsar
30th August 2011, 11:00
Yes, able to fix problem with your suggessions.


Thanks

Manish