I was wondering that perhaps there is something wrong with the way I declare the plugins in my main.cpp. This is how I do it:

Qt Code:
  1. #include <QtPlugin>
  2.  
  3. Q_IMPORT_PLUGIN(qjpeg)
  4. Q_IMPORT_PLUGIN(qgif)
  5. Q_IMPORT_PLUGIN(qmng)
To copy to clipboard, switch view to plain text mode 

Is there anyone out there who has compiled Qt4 statically and has linked imageformat plugins statically to the executable? I have tried just about every combination of everything but nothing works. This problem is causing me a major problems. Thanks!