Installing Qt in Visual Studio

1

I would like to know how to install the 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 it in many ways. What is the best way to use QT?

    
asked by anonymous 14.03.2016 / 14:30

1 answer

3

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

Stable versions of QT5 support only supports VS 2010 , VS 2012 and VS 2013 ( the latter supports 32bit and 64bit), meaning you 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 (which we usually forget), install VS Add-in for QT5 (compatible with any version of QT5.xx including QT5.6- rc):

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

  

Ipersonallyprefer"QT Creator" to develop, but both VS and Qtcreator will meet your needs, so you do not have a better way to use it, you choose as you feel more accustomed.

    
14.03.2016 / 15:34