我定义一个类CSplash,继承QSplashScreen。构造函数
{
movie = new QMovie(":/Resources/ball.gif");
int i = movie->frameCount();
frontPix = movie->currentPixmap();
gif_label = new QLabel(" ",this);
gif_label->setMovie(movie);
movie ->start();
.........
}
图片是动画的,但是程序运行时没有动画效果,只是一个静止的图片。
另外, frameCount() 和 currentPixmap() 函数返回值也有问题,得不到
帧数和当前的pixmap.不知道为什么。请高手解答。