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!