pBook‎ > ‎QT‎ > ‎

VS 2010

posted Sep 21, 2014, 8:15 AM by Javad Taghia   [ updated Sep 21, 2014, 8:15 AM ]


You can develop Qt applications on Windows using the Microsoft Visual Studio IDE.

Qt provides precompiled binaries for use with Visual Studio and a plug-in that
integrates the Qt tools into the IDE.

The free Express Edition of Visual Studio does not support third-party plugins.
You must use a commercial version of Visual Studio to use the Qt plug-in.

We have only tested Visual Studio 2010.

This document assumes you have already installed Visual Studio with C++ tools.


qt-win-opensource-4.8.1-vs2010.exe from http://qt.nokia.com/downloads/windows-cpp-vs2010

qt-vs-addin-1.1.10.exe from http://qt.nokia.com/downloads/visual-studio-add-in

Install Qt

Run qt-win-opensource-4.8.1-vs2010.exe and do a default install.

Add the QTDIR Environment Variable

Qt will install into C:\Qt\4.8.1

Create the following environment variable in the User variables environment


Add %QTDIR%\bin to the PATH

Access the ‘Environment Variables’ dialog this way

Control Panel
-- System and Security
---- System
------ Advanced system settings
-------- Environment Variables

Add the new values to the ‘User variables’ section. You may have to add a PATH entry to the ‘User variables’ section also. This ‘User’ section PATH will get appended to the ‘System’PATH.

and SYSTEM VARIABLES on path add at the end c:Qt\4.8.1

Qt-Plugin for VS2010

Run the executable qt-vs-addin-1.1.10.exe and do a default install.

The next time you run VS2010 you should see a new Qt menu in the main menu bar.