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("owered-opensuse.jpeg"));
ui->IMG->setPixmap(QPixmap("owered-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.
Bookmarks