PDA

View Full Version : GIF images in qt resource file



A9am
25th November 2013, 05:48
Hi,

I have done an application where i am using a gif image to show some progress of some operation. The Gif Image is added to qt resource file and with qt creator , if i run the application, the image is displayed on window. But if I take the exe to another machine , the images are not loaded to window. Even the jpeg images are also not loaded. For me only bmp images are working. Kindly advice the method to use gif and jpeg images.


Thanks,

:)

Lesiok
25th November 2013, 06:43
Most image formats are supported by plugins. You can place it on the target computer.

A9am
25th November 2013, 08:45
I have copied the qgif.dll and qgifd.dll to the same folder of exe in the other machine. Still the images are not displayed. :(

Added after 1 11 minutes:

Hi,

The qgifd.dll should be placed in a folder imageformats in the same directory of exe. It worked ..:D:)


Thanks.

aamer4yu
25th November 2013, 09:36
You need to copy plugins in the folder imageformats ...
See the Qt plugins directory for images, and you need the same directory structure on target machine (imageformats should be in the directory of your executable)

Hope this helps :)