View Full Version : jpeg images on qlabel windows app

25th April 2012, 19:17

I'm trying to deploy an application on windows, the image shows correctly on the development PC, but once I change to another one without the development environment the images are not showed, if i change the image to png, the image is showed correctly.

What I have done:

I copy the folder imageformats (with all dlls on it) on the folder where my executable is. (didn't works)

I create the file qt.conf and create the folder \plugins\imageformats (didn't works)
the contents fo file qt.conf (located on the application's folder)

tried also on main.cpp

QApplication a(argc, argv);

Nothing on what I have done worked out.

On windows I'm using only QT creator (not visual studio)
the code on the application that calls the image is:


The dlls on application folder are:

QtGui4.dll, QtCore4.dll, mingwm10.dll, libgcc_s_dw2-1.dll

If I change the image to png it works perfectly.

Thanks in advance for your help.

25th April 2012, 21:36
I had the very same problem. After long searching I found out, that there are 2 occurrences of each of the imageformat dlls in the qt package. The dlls have the same name but a different size - take the bigger ones ;-)
It might or might not help you, but it's perhaps worth a try.

25th April 2012, 23:39
Thanks a lot Sedi !!!, you are right its working now.