After we have configured the environment variables of QT, we can use QT to develop this first program through terminal.
Because QT file path can not have Chinese or will error, so generally the project files are built in the root directory
The QT program we created consists of two parts: 1, GUI program 2, display string, so enter the code:
Compile this program
If you are prompted that you cannot find the qmake, there is a problem with the environment variable configuration.
After entering LS, we can see that a pro file is generated under the directory, which is a platform-independent project file
Then enter Qmake to complete the compilation, and then use LS to see what files, more than one makefile file, this is a platform-related build file for the C + + compiler to call
Then continue to enter make, which is compiled with the compiler:
Two more files viewed with LS
And then we run to see
Development of the first Hello World program with QT