How to convert QtCreator project to Visual Studio project

删除回忆录丶 提交于 2019-12-03 06:28:49

问题


I have a QtCreator project file *.pro

How to convert it to Visual Studio 2008 project *.sln?


回答1:


You can also use the qmake command to do this. Go to the project dir and type "qmake -tp vc".




回答2:


Qt Creator / qmake can generate .vcproj files directly.

See this link

Put "TEMPLATE=vcapp" or "TEMPLATE=vclib" (as appropriate) in your .pro file and run qmake. That will generate a .vcproj file.

Edit: The link no longer worke, but I found an archive of it here




回答3:


It's now possible to open the .pro file directly from the Qt Visual Studio Tools extension. Visual Studio will then generate the necessary solution files. Currently the extension is available for VS2013, VS2015, VS2017 and VS2019.

Step 1. Install the QT Visual Studio Extension. From the Marketplace, install the Qt Visual Studio Tools extension.

Step 2. Import your .pro projects into Visual Studio. To do that, select the Qt VS Tools > Open Qt Project File (.pro) to let the extension create a VS solution and project from your existing Qt .pro file. More information on this is available in the Qt docs covering Qt project management in Visual Studio.

Answer copied from this blog post: Bring your existing Qt projects to Visual Studio.



来源:https://stackoverflow.com/questions/5804947/how-to-convert-qtcreator-project-to-visual-studio-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!