Example #1
0
void QSplashScreenPlus::show_animation(const qreal &start,const qreal &end)
{
    setGraphicsEffect(&effect);

    QPropertyAnimation *animation = new QPropertyAnimation(&effect, "opacity");
    animation->setParent(this);

    animation->setDuration(_min_splash_time);
    animation->setStartValue(start);
    animation->setEndValue(end);

    animation->start();
}