Installing Qt in Visual Studio

Asked

Viewed 390 times

1

I would like to know how to install QT in visual studio 2015, I did everything, but I can not use it. Whenever I give a #include for example, it says that there is no file or directory. I’ve tried several ways.
How best to use QT?

  • I hope that in the next version of Qt5.x, you have already solved this VS2015 recognition issue!

1 answer

3

Only QT5.6 supports the VS2015, but it is still in RC version (Release Candidate), you can try, but RC versions are subject to Bugs, even being close to release, follow the downloads:

Already the stable versions QT5 supports only supports VS 2010, VS 2012 and VS 2013 (this last version supports 32bit and 64bit), or probably tried to use one of these versions, but VS2015 does not recognize them.

To install QT with Visualstudio follow these steps:

First select the desired version:

Then install Visualstudio2013, in case there is the community version that is "free":

Now most important (we usually forget), install the VS Add-in for QT5 (compatible for any version of QT5.x. x including QT5.6-rc):

After that you can use QT from Visualstudio directly and even import projects from .pro and uses in .sln:

VS com QT

I personally prefer the "QT Creator" to develop, but both VS and Qtcreator will meet your needs, so there is no better way to use it, you choose as you feel more accustomed.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.