QPropertyAnimation *anim = new QPropertyAnimation(toolBox, "geometry"); anim->setDuration(200); anim->setEasingCurve(QEasingCurve::OutBounce); anim->setStartValue(...); anim->setEndValue(...); anim->start(QAbstractAnimation::DeleteWhenStopped);