Error "Cannot instantiate QtProjectEngine object!" when making a Qt 5.7.1 project in Visual Studio 2015
-
wrote on 17 Jan 2017, 21:44 last edited by
I finally gathered up the courage to start learning Qt. I've been using Visual Studio 2015 all this time so I've decided to hook up Qt to it. I did it with the help of a tutorial on Youtube, but whenever I try to start a Qt project I get the error mentioned in the title. Could anyone please help me solve it?
-
wrote on 18 Jan 2017, 09:36 last edited by
are you using Visual Studio Add-in 2.0.0 for Qt5 MSVC 2015 from https://www.qt.io/download-open-source/#section-2 ?
-
wrote on 18 Jan 2017, 14:05 last edited by
No. Should I be?
-
wrote on 18 Jan 2017, 16:28 last edited by
That is the tool integrating Qt into the Visual Studio build process seamlessly so, yeah
-
wrote on 19 Jan 2017, 17:07 last edited by
Ok after Installing it I still couldn't make any projects under "Qt5" but I was able to make them under "Qt". There are options for "Qt Active Server", "Qt Class Library", "Qt Console Application", "Qt Designer Custom Widget" and "Qt GUI application". Most of the tutorials give examples with Qt Widget applications so I'm guessing the GUI application is the equivalent of that?
-
wrote on 19 Jan 2017, 17:50 last edited by
Qt5 is the menu from the old addin that shouldn't even be installable in VS 2015, just remove it.
"Qt GUI application" should work both for QtWidgets and QtQuick -
wrote on 19 Jan 2017, 21:45 last edited by
Okay. Quick question. How do I access the .pro files of my project in VS2015? If they even exist of course, because I can't see them in the Solution Explorer. I can see the header files, the source files, the ui files and everything but not .pro.
-
wrote on 20 Jan 2017, 05:58 last edited by
The VS addin makes your project only rely on the VS build chain, it does not use qmake so no .pro file is necessary. if you need the .pro file to distribute you application and/or deploy it on other OSs you can right click on your project and export it to .pro file. Again, any change you make to the .pro file will not in any way impact your visual studio project
1/8