Configuration of the QT environment variables under windows

Source: Internet
Author: User

After installing QT, the first thing to do is to configure its environment, otherwise it is impossible to create the project, not to mention the program. The purpose of writing today is to fear that I will forget later.

Today just installed the system, a little forgot how to configure, fortunately remember a little, the final configuration is complete.

First click on "Tools"------"options"----there is a column on the left called "Build and Run", click on.

Click on the QT version, usually not automatically display, you need to manually set up. On the top click-"Add button", select your QT installation directory

For example, my installation directory is the C drive, the choice is good after













Then configure the other, click "Tool Chain" and the above, click "Add", add MinGW Directory

Select the "Compiler" and "debugger" directories in the following directory

The compiler is GCC and the debugger is GDB

Make sure after you choose. Well, I configured it.
















After the above are configured, you can write a simple program test. It is generally written in a Hello World program. Perfect operation.




To remember their own way of programming!

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.