My project uses a similar method in animating gif images in a QTextEdit to this example: http://wiki.qtcentre.org/index.php?t...n_in_QTextEdit
The difference is that I had to load many gif images, so instead of calling setLineWrapColumnOrWidth(lineWrapColumnOrWidth()); to reload the QTextEdit document in every animation I declared a slot and connected it to a QTimer.
It works great under my linux, and it also works under my windows.I have Qt 4.4.1 installed.The problem is that if I send my app to a windows user who doesn't have qt4 installed (not sure about this, maybe doesn't have some other dll) the gifs won't load.White image icons appear instead of animations.
The problem occurs only in the case of gifs.Pngs load perfectly.
I convinced one of my friends to run the app with gdb to see if he gets any errors about missing dlls or other things that could point me in the right direction, but none were found.
I also tried loading it statically with Q_IMPORT_PLUGIN(qgif) (added QTPLUGIN += qgif to the project file too), but it complained about not finding qgif.I do have libqgif.a and qgif4.dll in plugins/imageformats, as part of Qt 4.4.1.
I copied to the folder containing the exe file of my app the following dlls:
mingw10.dll, QtCore4.dll, QtGui4.dll,QtNetwork4.dll.
Every windows user who tested the app runs XP, haven't tried under vista.
What am I doing wrong?
Thanks.
Bookmarks