Have you tried using this step-by-step guide?

http://wiki.qtcentre.org/index.php?t...ws_using_MinGW