How to convert the QT project file to the vcproj file of Visual Studio and maintain data consistency

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.