Hi, Thanks for the replies both of you. Sorry, but I am still confused. Not sure how to use QAbstractAnimation:: finished () linking to the hiding of parent view.
QPropertyAnimation
*animation
= new QPropertyAnimation
(parent,
QString("windowOpacity").
toLatin1());
//windowOpacity"); QPropertyAnimation
*animation2
= new QPropertyAnimation
(second,
QString("windowOpacity").
toLatin1());
//"windowOpacity"); animation->setDuration(3000);
animation2->setDuration(3000);
animation2->setStartValue(0.0);
ui->centralWidget->setEnabled(true);
second->show();
animation->setStartValue(1.0);
animation->setEndValue(0.0);
animation2->setEndValue(1.0);
QPropertyAnimation *animation = new QPropertyAnimation(parent, QString("windowOpacity").toLatin1());//windowOpacity");
QPropertyAnimation *animation2 = new QPropertyAnimation(second, QString("windowOpacity").toLatin1());//"windowOpacity");
animation->setDuration(3000);
animation2->setDuration(3000);
animation2->setStartValue(0.0);
ui->centralWidget->setEnabled(true);
second->show();
animation->setStartValue(1.0);
animation->setEndValue(0.0);
animation2->setEndValue(1.0);
To copy to clipboard, switch view to plain text mode
I am doing the above code, but now things are running very quickly and I cant see any animation, only the second view. The first parent view is visible but behind the second view.
Bookmarks