Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Error "Cannot instantiate QtProjectEngine object!" when making a Qt 5.7.1 project in Visual Studio 2015
QtWS25 Last Chance

Error "Cannot instantiate QtProjectEngine object!" when making a Qt 5.7.1 project in Visual Studio 2015

Scheduled Pinned Locked Moved Unsolved The Lounge
8 Posts 2 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zablas
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      are you using Visual Studio Add-in 2.0.0 for Qt5 MSVC 2015 from https://www.qt.io/download-open-source/#section-2 ?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • Z Offline
        Z Offline
        Zablas
        wrote on last edited by
        #3

        No. Should I be?

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          That is the tool integrating Qt into the Visual Studio build process seamlessly so, yeah

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1
          • Z Offline
            Z Offline
            Zablas
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              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

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              1
              • Z Offline
                Z Offline
                Zablas
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  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

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  1 Reply Last reply
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved