Qt creator is a very useful cross-platform project management tool and integrated development environment (IDE ). However, Visual Studio is still my most popular development tool for myself. Because QT uses MOC, it will be very troublesome to manage Visual Studio project files by myself, especially when adding and modifying files.
The method I used is to maintain the project file through QT Creator every time, and then convert it into a Visual Studio project file for development. The conversion command is very simple:
Go to the command line, go to your QT project directory (directory where the. Pro file is located), and then run the following command:
Qmake-TP VC
To make the workflow more smooth, for example, if your project name is "test", you can write a BAT file that contains the following two lines:
Qmake-TP VC
Test. sln
Step 1: Convert the file, and Step 2: Open the project file. In this way, you can start QT creator, modify the project, save the disk, and run the batch processing file each time you need to modify it.