Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert QtCreator project to Visual Studio project

I have a QtCreator project file *.pro

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

like image 727
Dmitriy Avatar asked Apr 27 '11 13:04

Dmitriy


People also ask

Does Qt work with Visual Studio?

Qt Visual Studio Tools integrate the Qt development tools into Microsoft Visual Studio 2017. This enables developers to use the standard Windows development environment without having to worry about Qt-related build steps or tools.

How do I export a QT project?

pri file, select Extensions > Qt VS Tools > Export Project to . pri File. When you add or remove a file from the Visual Studio project file, you must regenerate the . pri file to ensure that the application can still be built on other platforms.

How can I add Qt version in Visual Studio 2019?

Under tools select Extensions and Updates. click the Online arrow on the left and search for Qt. Install the Qt Visual Studio Tools extension. Restart the Visual Studio 2019 IDE and under Qt VS Tools –> Qt Options add the Qt version 5.14 with associated directory C:\qt\5.14.


2 Answers

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

like image 116
spmno Avatar answered Sep 25 '22 03:09

spmno


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

like image 22
eatyourgreens Avatar answered Sep 22 '22 03:09

eatyourgreens