int duration2 = 1000;
QPropertyAnimation *animation = new QPropertyAnimation(ui->frame, "size"); //maximumSize");// "geometry");
animation->setDuration(duration2);
animation
->setStartValue
(QSize(400,
400));
//QRect(735,415,300,300)); animation
->setEndValue
(QSize(1600,
1600));
//animation->setEasingCurve(QEasingCurve::OutBounce);
QPropertyAnimation *animation2 = new QPropertyAnimation(ui->graphicsView, "size");
animation2->setDuration(duration2);
animation2
->setStartValue
(QSize(400,
400));
//QRect(735,415,300,300)); animation2
->setEndValue
(QSize(1600,
1600));
//QRect(735,115,300,300)); // animation2->setEasingCurve(QEasingCurve::OutBounce);
QParallelAnimationGroup *group2 = new QParallelAnimationGroup;
group2->addAnimation(animation);
group2->addAnimation(animation2);
group2->start();
int duration2 = 1000;
QPropertyAnimation *animation = new QPropertyAnimation(ui->frame, "size"); //maximumSize");// "geometry");
animation->setDuration(duration2);
animation->setStartValue(QSize(400, 400)); //QRect(735,415,300,300));
animation->setEndValue(QSize(1600, 1600));
//animation->setEasingCurve(QEasingCurve::OutBounce);
QPropertyAnimation *animation2 = new QPropertyAnimation(ui->graphicsView, "size");
animation2->setDuration(duration2);
animation2->setStartValue(QSize(400, 400)); //QRect(735,415,300,300));
animation2->setEndValue(QSize(1600, 1600));//QRect(735,115,300,300));
// animation2->setEasingCurve(QEasingCurve::OutBounce);
QParallelAnimationGroup *group2 = new QParallelAnimationGroup;
group2->addAnimation(animation);
group2->addAnimation(animation2);
group2->start();
To copy to clipboard, switch view to plain text mode
Bookmarks