Development of the first Hello World program with QT

Source: Internet
Author: User

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

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.