GIF image problem

  • Hi,
    How to work with gif animated images.

    I am using below code
    QGraphicsScene scene;
    QLabel *gif_anim = new QLabel();
    QMovie *movie = new QMovie(image);
    QGraphicsProxyWidget *proxy = scene.addWidget(gif_anim);

    but it is not working.

    Please help me..

    Thank you

  • Hi try this.

    QMovie *movie = new QMovie(":Animations/icons/yourAnimatedIcon.gif");
    QLabel *yourLabel = new QLabel(this);

    hope it helps

  • Thank you for reply.

    But it is not working.
    I can see only static image.Its not animating.

    I am using fedora 20 and Qt creator 3.1.1 and Qt 5.2..

    Thank you

  • Hi .

    i didn't check on fedora.

    But it is working on Windows properly .

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.