Problem solved! Thank You all!
stampede, I'm showing You the code You asked for:
#include <QtGui/QApplication>
#include "widget.h"
int main(int argc, char *argv[])
{
a.addLibraryPath(":/plugins/imageformats");
Widget w;
w.show();
return a.exec();
}
#include <QtGui/QApplication>
#include "widget.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.addLibraryPath(":/plugins/imageformats");
Widget w;
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
ChrisW67, I noticed typing error "plagins" instead of plugins the first time stampede adviced me to "watch for typos". That was not the problem. But, You were right that I should put imageformats folder directly into folder that contains *.exe file. You were also right that I should check the source of imageformats .dll files! When I did these two things the problem was solved!
In case anybody face similar problem, here is advice:
NEVER COPY imageformats dll files from this folder:
c:\QtSDK\QtCreator\bin\imageformats\
ALWAYS COPY imageformats dll files from this folder: c:\QtSDK\Desktop\Qt\4.7.3\mingw\plugins\imageforma ts\
Thank You all again, You were a great help to me!
Bookmarks