I don't use GIF animation with QGraphicsView
or QGraphicsScene
, I use it only in QDialog
, but I think it's the same stuff, so here is my code:
QMovie *movie = new QMovie(":/images/other/images/16x16/loading.gif");
QLabel *processLabel = new QLabel(this);
processLabel->setMovie(movie);
movie->start();
My loading.gif
I took from this link.
PS: also check the examples from Qt SDK. They are really can help!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…