I wasn’t able to find any great instructions on how to compile QT 4.7 with VS 2010, which is needed if you aren’t developing with VS2008. This tutorial covers how to compile QT 4.7.1 with 2010, and it should work with newer versions of Qt but I can’t be sure it will.
Source:
- Qt SDK Source (link)
Dependencies:
- Microsoft DirectX Software Development Kit which can be downloaded here,
- Microsoft Windows Server 2003 R2 Platform SDK which is available here.
Both of those need to be downloaded and installed before you can build the SDK. You also need to have perl (link).
….to be finished.

I see this hasn’t been updated in a while, for people who want to compile QT for 2010 check out:
http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/