QT and Visual Studio 2010

Can someone provide me with a step-by-step guide for getting QT to work in VS 2010?

I have:

  • Visual Studio 2010 Ultimate
  • Windows 7 Enterprise
  • Qt-sdk-win-win open source 2010.05
  • Qt-versus-add-on-1.1.7

I tried to execute this from the Visual Studio command line:

configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -no-qt3support -fast

Then:

nmake

I installed the add, but when I go to the QT menu and try to add the assembly, it says: "Your assembly was built using MingW"

+5
source share
4 answers

Download the version of Qt already compiled for Visual Studio 2008 (the latest version is here ). It should work with Visual Studio 2010.

0

Qt V4.8.0 Visual Studio 2010, : http://qt.nokia.com/downloads/windows-cpp-vs2010

+2

New Qt 4.7 adds win32-msvc2010qmake spepec support .

The SDK compiled for MSVS2008 should work fine, though ...

+1
source

The downloaded Qt SDK (qt-sdk-win-opensource-2010.05) does not yet support VS 2010. It does not detect the version of Visual Studio that it knows about, and why it installs the MinGW build of Qt. Unfortunately, this cannot be used with the Qt VS add-in.

AFAIK full support for VS 2010 will be added with the release of Qt 4.8.

0
source

All Articles