You have to import a static plugin into your application using Q_IMPORT_PLUGIN(qjpeg) macro. See docs for details.
You have to import a static plugin into your application using Q_IMPORT_PLUGIN(qjpeg) macro. See docs for details.
Linking statically to the jpeg library (or rather the Qt plugin that links to libjpeg) is not enough. The application needs to be informed about the plugin - that's what the Q_IMPORT_PLUGIN macro is for.
PNG file support is embedded directly into Qt, without any plugins - that's why you can always load PNG or XPM images. This is not the case with JPEG or GIF. Reasons? As for GIF, surely the patent thing... As for JPEG? I don't know... ask Trolltech.
Bookmarks