How to convert a regular win32 (VC++ vcproj) project to a Qt project?

后端 未结 5 1214
南方客
南方客 2020-12-24 13:17

How can I convert existing vcproj files to project files that the QT add-in to Visual Studio recognizes and treats as valid Qt projects?

Should I just bite the bull

5条回答
  •  离开以前
    2020-12-24 13:41

    More answer from Qt support engineer; I think the first pargraph is helpful as I didn't know that before:

    i think this is a misunderstanding really. If you have a Qt project generated with the Add-in, then you can change this project into a qmake generated Qt project - and vice versa; If you have a .vcproj that has been generated by doing qmake -tp vc, then you can convert this to a Qt Add-in project.

    There is no functionality to convert a regular win32 project into a Qt enabled project, so the suggestion created is still valid, see:

    https://bugreports.qt.io/browse/QTVSADDINBUG-27
    

    I can see from the history of this report that it has been closed and re-opened again, so I assume there was a misunderstanding regarding what you were looking for in the first place.

    If you create a .pro for you project using qmake, then you should be able to create a .vcproj file using 'qmake -tp vc' on that .pro file. The qmake manual is available here:

    http://doc.qt.io/qt-5/qmake-manual.html
    

    I hope this helps.

    Regards,

    --

    Support Engineer, Qt Development Frameworks, Nokia

提交回复
热议问题