一、代码
QPropertyAnimation *d = new QPropertyAnimation(this, "windowOpacity");
d->setDuration(3000);
d->setStartValue(1);
d->setEndValue(0);
d->start();
connect(d, SIGNAL(finished()), this, SLOT(close()));
一、代码
QPropertyAnimation *d = new QPropertyAnimation(this, "windowOpacity");
d->setDuration(3000);
d->setStartValue(1);
d->setEndValue(0);
d->start();
connect(d, SIGNAL(finished()), this, SLOT(close()));