jpeg images on qlabel windows app
Hi
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)
[PATHS]
plugins=./plugins
tried also on main.cpp
QApplication a(argc, argv);
a.addLibraryPath("./plugins");
a.addLibraryPath("/plugins");
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:
setWindowIcon(QIcon(":powered-opensuse.jpeg"));
ui->IMG->setPixmap(QPixmap(":powered-opensuse.jpeg"));
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.
Re: jpeg images on qlabel windows app
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.
Re: jpeg images on qlabel windows app
Thanks a lot Sedi !!!, you are right its working now.