[Qt-wince-interest] GIF in wince qt version

Andreas Unger andi.unger05 at gmail.com
Sun Jan 31 08:35:20 CET 2010


Hello,

Did you get this working? You are should include the configure flag -qt-gif
while building Qt. Additionally, in your project file, include something
like:

wince* {
    QTPLUGIN += qgif
}

Finally, you need this in your main.cpp:

#include <QImageReader>
#include <QtPlugin>
#ifdef Q_OS_WINCE
    Q_IMPORT_PLUGIN(qjpeg)
    Q_IMPORT_PLUGIN(qgif)
#endif

That's if you want statically linked libs. If you need dlls, then you have
to bundle the imageformats folder along with your application.

Cheers,
Andreas

On Fri, Jan 29, 2010 at 6:29 AM, Sergey Pakhandrin <
sergey.pakhandrin at gmail.com> wrote:

> Hi everybody!
>
> I have a question about how to load and animate a gif image in the
> application.
> I use QMovie, but it doesn't work in wince project.
> When I run my app on windows mobile, gif image doesn't play, but on
> symbian it works.
>
> supportedFormats() in QMovie got me nothing, just "" in output
>
> How can I use gif format in qt for wince?
>
> Thanks in advance!
>
> Sergey.
> _______________________________________________
> Qt-wince-interest mailing list
> Qt-wince-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-wince-interest/attachments/20100131/02243e16/attachment.html 


More information about the Qt-wince-interest mailing list