diff --git a/animations/animation.cpp b/animations/animation.cpp index a593d58df..ef676e27d 100644 --- a/animations/animation.cpp +++ b/animations/animation.cpp @@ -62,6 +62,8 @@ void Animation::setDuration(int duration) void Animation::setWidgetToAnimate(QGraphicsWidget* widget) { d->animObject = widget; + if (parent() == 0) + setParent(widget); } QGraphicsWidget* Animation::widgetToAnimate()