I have used QGraphicsView, QGraphicsScene classes in order to show a picture in a widget like this:
m_Scene->addPixmap(QPixmap(fileName));
m_View->setScene(m_Scene);
How I can show .gif animation in the same scene?
I have used QGraphicsView, QGraphicsScene classes in order to show a picture in a widget like this:
m_Scene->addPixmap(QPixmap(fileName));
m_View->setScene(m_Scene);
How I can show .gif animation in the same scene?
Try with proper image path:
QMovie *movie = new QMovie(":/images/mygif.gif");
movie->setVisible(true);
QLabel *processLabel = new QLabel(this);
processLabel->setGeometry(200,150,180,100);
processLabel->setVisible(true);
processLabel->setMovie(movie);
movie->start();