Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to integrate VS2013 with Qt5.5? [SOLVED]
ChrisW last edited by ChrisW
I've been unable to find any updated resources online with how to install Qt5.5 with VS2013 ( I know that VS2015 is the latest, but I haven't seen enough additional features to make it worthwhile to cough up the money...lol.). This is basically what I did:
1.) I installed Qt's latest library.
2.) I installed Qt's plugin and ran it.
3.) I opened up VS and did this:
QT5 >> Qt Options >> Ensured that Qt's tab is selected >> Add >> and then I picked msvc2013_64( which includes all the files that I feel is necessary).
For some reason, the compiler isn't recognizing the includes and etc. I'm running 64-bit Windows system, if that helps. This is how my IDE looks:
For future reference, can you tell me how to embed an image in the forum? I tried using HTML to accomplish that, but I'm not fooling the viewer. I also wouldn't mind working on Eclipse, my preferred IDE, but for some reason VS is the standard for C++ programming. I found VS to be rich with features that I don't need and Eclipse can pretty much do everything that I need and more.
I know that VS2015 is the latest, but I haven't seen enough additional features to make it worthwhile to cough up the money...lol
You don't have to pay. There's a free and rich-featured Community Edition of VS2015. As for features you might (and should!) be interested in it brings almost full C++11 support and some of C++14 goodies.
Note though that there is no VS2015 compatible Qt add-in yet.
First error you have is
module machine type 'x64' conflicts with target machine type 'X86'.
It's because you installed a 64bit Qt package, but have a 32 bit project.
Open the combo on the toolbar that says "Win32" and click "Configuration Manager". In there add a 'x64' in the "Active solution platform". After that you can remove the Win32 platform if you're not interested in 32bit app (for which you would need appropriate Qt package).
Then right click on your solution in the solution explorer and choose "Change Solution's Qt Version". In there choose your installed Qt package.
Now you should be able to build your solution correctly.
I know this is not intuitive but it's gonna be fixed in the next add-in (1.2.5) so that a proper configuration is created by the wizard automatically if you have a 64 bit Qt. For now you need to do that for every new solution you create (or switch to 32 bit Qt, but I don't recommend that).
For some reason, the compiler isn't recognizing the includes and etc.
As for the intellisense for the Qt types (the red squiggles in the editor) you need to point Visual Studio to the location of Qt headers. Right click on your project and select "Properties". There go to Configuration Properties -> VC++ Directories and in the Include Directories field add a path to the "include" directory of your Qt installation.
Posting an image is described in the help (the "?" button on your post editing toolbar):
![Text for textual browsers](/path/to/img.jpg "Optional title")
so for your image this would be
![Errors in my project](http://s16.postimg.org/bxfq5y2as/QTCapture.jpg "This is a tooltip :)")
ChrisW last edited by
Thanks a million. It works and what you told me about linking was a lot easier than what I remember from a year ago when I was trying to link another library to an IDE. I couldn't remember those exacts steps.