Unsolved Doing Qt Animination Sequential with QGraphicsScene
-
Hi everyone,
I've been experimenting with QGraphicsScene. I'm familiar with animation using QTimeLine, QParallelAniminationGroup, QSequentialAniminationGroup, and etc. The problem is that it can be a little bit hard integrating those classes for my graphics that I create in QGraphicsScene.
For instance, this would not work:
QParallelAnimationGroup *group = new QParallelAnimationGroup;
group->addAnimation(anim1);
group->addAnimation(anim2);group->start();
if anim1 and anim2 are not QGraphicsItemAnimation. Okay, so you might say to use QPropertyAnimation. Well.... these are more so for widgets, not QGraphicsItemAnimation and will not work in this case.
So as you can see, it isn't that easy for integration with the exception of QTimeLine (code not shown) and maybe a few others. Anyhow, using strictly the auxillary classes for QGraphicsScene, how do I go about doing sequential animation since I cannot use QSequentialAnimationGroup class? I figured out parallel animation, but I don't see any functions or any clean way of doing sequential.
Thanks so much and happy holidays!