PDA

View Full Version : .Gif Image????



anupamgee
15th April 2009, 12:21
hi all,
i have loaded the .gif image in a widget but image is not showing animation as expected. it is loading like any normal image and not showing amimation...how to show its animation...
i used the following code:

void Widget::paintEvent( QPaintEvent *event)
{
QImage image_Loading(":/images/Loading.gif");
QPainter painter(this);
painter.drawImage(QPoint(10, 10), image_Loading);
}

spirit
15th April 2009, 12:35
take a look at QMovie.

anupamgee
15th April 2009, 13:14
thnxxx a lot.........
it works using qmovie....