现在.ui上创建一个Qlabel
我存放图片的路径是/home/leaf
main.cpp
#include
#include
int main(int argc,char* argv[])
{
QApplication a(argc,argv);
QLabel *label=new QLabel();
QMovie *movie=new QMovie("/home/leaf/leaf.jpg");
label->setMovie(movie);
movie->start();
lable->show();
return a.exec();
}
阅读(2777) | 评论(0) | 转发(0) |