#include <QtGui/QApplication>
#include <QLabel>
#include <QMovie>
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QLabel *label = new QLabel();
QMovie *movie = new QMovie("D:/Project/Qt/firstQT/2.gif");
label->setMovie(movie);
movie->start();
label->show();
return app.exec();
}
阅读(2345) | 评论(0) | 转发(0) |