idea
通过动画切换不透明度
// 透明度设置
QGraphicsOpacityEffect *opacity = new QGraphicsOpacityEffect();
opacity->setOpacity(1);
splash.setGraphicsEffect(opacity);
// 动画制作
QPropertyAnimation *animation = new QPropertyAnimation(opacity, "opacity");
animation->setDuration(100);
animation->setStartValue(1);
animation->setEndValue(0);
animation->start();
QGraphicsOpacityEffect、QPropertyAnimation类介绍