Ok I succeeded in compiling Qt static by following this article:
http://http://developer.qt.nokia.com...ndows_with_gcc

Qt compiled without errors, but when compiling an app, I get these errors:

Qt Code:
  1. g++ -static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-en
  2. able-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows -o release\CDdata.exe ob
  3. ject_script.CDdata.Release -L"c:\Qt\lib" -lmingw32 -lqtmain -LC:/Qt/plugins/ima
  4. geformats -lqjpeg -lqgif -lQtWebKit -lQtSql -ljscore -lshlwapi -lversion -lQtGui
  5. -lQtNetwork -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32
  6. -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -LC:\m
  7. ysql\lib
  8. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
  9. d -lqjpeg
  10. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
  11. d -lqgif
  12. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
  13. d -ljscore
  14. collect2: ld returned 1 exit status
  15. mingw32-make[1]: *** [release\CDdata.exe] Error 1
  16. mingw32-make[1]: Leaving directory `C:/Users/Marlies/Desktop/CDdata2-0/CDdata'
  17. mingw32-make: *** [release] Error 2
To copy to clipboard, switch view to plain text mode 

Is this because there went something wrong in the compilation of Qt?