I don't think you are disagreeing, just confusing required with available (and loading DLLs with ultimate use of the DLL). If your application requires JPEG image handling then it requires qjpeg4.dll, no doubt. However, when Qt needs to load an image it loads all the available image format plugins (QImageIOPlugin) it can find and then asks each (QImageIOPlugin::capabilities()) whether the particular image can be handled by the plugin. It will then use the JPEG plugin in this case. (If no plugin can handle the image then built-in options are tried before failing) All of the available plugins are loaded and show in DW during a run profile.
This code:
#include <QtGui>
int main(int argc, char **argv)
{
l.show();
return app.exec();
}
#include <QtGui>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QLabel l;
l.setPixmap(QPixmap("Lenna.png"));
l.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
makes no use of JPEG, GIF etc. but because they are available DW shows:
WinXPDev.png
You only need to ship the plugins your applications requires but no particular harm comes from shipping them all.
Bookmarks