C++ (Qt) panelAnim = new QPropertyAnimation(ui->toolbar, "pos"); panelAnim->setDuration(450); panelAnim->setEasingCurve(QEasingCurve::InOutQuad);
C++ (Qt) if (!panelAnim->Stopped) panelAnim->stop(); panelAnim->setStartValue(ui->toolbar->pos()); panelAnim->setEndValue(QPoint(ui->toolbar->x(), -(ui->toolbar->height()+ui->toolbar->y())))); panelAnim->start(); }