QT + VS2008 environment configuration

2011-07-23  来源:本站原创  分类:Industry  人气:109 

Recent study QT, spent much time configuring the environment, can actually have a faster way. A simple configuration will now share.

Premise first installed the VS2008

1 install Qt LIBRARIES for Windows (VS 2008) , down to the qt-win-opensource-4.6.2-vs2008.exe, QT has provided a version compiled using VS2008, so you do not need to cost a few hours to compilation environment.

2 Installing Visual Studio Add-in , where to download the 1.1.3 version, as I downloaded the latest 1.1.4 version, but there a lot of mistakes. 1.1.3 Download the http://get.qt.nokia.com/vsaddin/ qt-vs-addin-1.1.3.exe

3. Now open VS2008, when a new item will appear QT4 Project this one. QT menu menu bar will appear.


If the VS Add-in version 1.1.4 is installed, the following problems may occur:

1 Click New Project in the ui file does not open QT Designer, is a big problem.

I found a temporary solution, although do not understand the truth: Right in the ui file - Open, then pop-up box will have two QT Designer, you can choose another start up.

2. Also another problem, click the QT menu Launch Designer, an error will appear as follows:

Can not find method: "Boolean System.Threading.WaitHandle.WaitOne (Int32)".
Stacktrace: at Qt4VSAddin.ExtLoader.loadDesigner (String fileName) in Qt4VSAddin.Connect.Exec (String commandName, vsCommandExecOption executeOption, Object & varIn, Object & varOut, Boolean & handled)

Have yet to solve this problem. If users want to find a way to provide to me.

These problems after installing the 1.1.3 version of the complete elimination, if you encounter problems, try downloading the older version.