[Qt-interest] QImage fail to load jpg file after linking with qt in static lib way.

Ivan Kharin korsar.akvis at gmail.com
Fri Dec 19 13:04:35 CET 2008


> the source code works well UNTIL i link my app with qt in statilc
> lib way, the result always be :    printf("fail to load jpg file.\n");
> after debug in i found it fail at those qt code lines:

> any suggestion for me? thanks.

Use Q_IMPORT_PLUGIN() in .cpp
and QTPLUGIN += qjpeg qtiff
in .pro


-- 
Ivan Kharin




More information about the Qt-interest-old mailing list