If I have a group of animations and have added them to a group –
QPropertyAnimation *Animation1 = new QPropertyAnimation(widget1, "pos");
QPropertyAnimation *Animation2 = new QPropertyAnimation(widget2, "pos");
QParallelAnimationGroup *animationGroup = new QParallelAnimationGroup;
Does this result in a memory leak or will the individual animations be deleted when the animation group completes ?
There's no leak, the "QAnimationGroup":http://qt-project.org/doc/qt-5.0/qtcore/qanimationgroup.html#details takes ownership of the QPropertyAnimation you add to it.