read step 3 on this page: http://doc.qt.nokia.com/4.7/install-win.html
Also, you should be able to run your program from the <filename>-build-desktop folder by opening a Qt prompt:
Start-Programs-Qt SDK (version)-Qt Command Prompt
This prompt should have the path set correctly for finding all dll's for mingw and Qt. Unless of course if your executable depends on other 3rd party dll's, then you will have to deal with those in a similar fashion by placing them in the path or copying them to the said folder.
In general, you can only run a program from the command line if:
1) the executable is in the current folder, or
2) the executable's location is in the path
same applies to DLL's
If you want to deploy, then look at this web page: http://doc.qt.nokia.com/4.7/deployment-windows.html
Bookmarks