Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Visual studio solution generation



  • Hi,
    I am comfortable in MSVC IDE. I have installed QT 5.7 for MSVC 2015, 64bit. Now I am not getting how would I obtain the solution files and all that stuff so that I can happily code in visual studio. Please shed some light.


  • Lifetime Qt Champion

    Hi
    Normally (in 2013) they used a plugin to help with that.
    As far as I know, this is used instead (for 2015)
    https://visualstudiogallery.msdn.microsoft.com/c89ff880-8509-47a4-a262-e4fa07168408

    http://stackoverflow.com/questions/32894097/how-do-i-use-qt-in-my-visual-studio-2015-projects

    There is lots for info on google getting it to work 95% as good as with creator.



  • The first one(https://visualstudiogallery.msdn.microsoft.com/c89ff880-8509-47a4-a262-e4fa07168408) worked for me, thank you so much. :D Of course I had to configure at the "option" menu of "Qt add in". And then I opened up .pro file from the "add in" menu. Then I saved the .sln file from visual studio. At first I got some warning and error messages while opening up the .pro files. Then I ignored them and cleaned the solution. Now things are working fine from my end. I don't know if I will get stuck, in future when I will be using advance features down to the road. It will be an editor for a game engine. So there will be multiple windows and viewports(take 'maya' or '3d max' or UE4 for example) rendering 3d elements. Lets see how things unfold.

    One thing bugs my mind:
    With the qt creator thing and abandoning MSVC add in, I am sensing that qt folks want us to use their IDE(qt creator) to develop rather than MSVC. Isn't it? Seems weird to me.


  • Lifetime Qt Champion

    • With the qt creator thing and abandoning MSVC add in, I am sensing that qt folks want us to use their IDE(qt creator) to develop rather than MSVC. Isn't it? Seems weird to me.

    Actually Microsoft killed ALL old plugins in VS-2015 so it stopped working and could not be created/work in same manner.

    The Qt Devs are using VS 2013. So no, its not a hidden plan to force ppl to use Creator. :)

    Also, the mingw compiler on windows do not have good support with many 3rd party Libs so
    rest assured that VS support is not going anywhere.


  • Lifetime Qt Champion

    Hi,

    As @mrjj stated, you're far from the truth. Visual Studio has always been a first class citizen. The AddIn hasn't been abandoned, Microsoft kill the plugin system of Visual Studio with its 2015 so everything needed to be re-done from scratch for that IDE.

    With Qt Creator, The Qt Company's goal is not to replace anything but to provide a cross-platform user-friendly IDE that allows developers to change platform without having to re-learn the idiosyncrasies of each tool (VS on Windows, Xcode on macOX etc.). However you're completely free to use your IDE of choice, KDevelop for example.


Log in to reply