By using this:
Qt with Visual Studio 2010, is not possible to use the pre-built binaries which were made for Visual Studio 2008, have to compile it from source.
Visual Studio Command:
Now that we have the sources, we need to build the binaries. To do it, open the Microsoft Visual Studio 2010\Visual Studio Tools\Visual Studio Command Prompt (2010) link from your start menu, or even pin it to the taskbar (a good idea). This is a special command prompt which has all the variables set for building with Visual Studio 2010 tools.
The command prompt, navigate to extracted Qt folder using old-school DOS way, which means to change drive letter by E:, enter directories by cd Qt and list dir contents by dir.
Time to configure and build. For configuring a minimalist Qt, By using flags with configure.exe. copy and paste it into the command line. Look in the Qt reference manual to use or not to use.
onfigure.exe -release -no-webk cit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -no-multimedia -no-ltcg
Once configure.exe has finished , to start the build process. It will take about 25 minutes with the above flags.
Set the environment variables (QTDIR and PATH), which tell programs where to find Qt. the following command to set QTDIR to installation dir.
setx QTDIR e:\Qt
add the directory of Qt\bin to PATH
Use Control Panel\System\Environment Variables, and then set this there.