Build the QT development environment in ubuntu10.10

Source: Internet
Author: User
Tags qt designer
Build the QT development environment in ubuntu8.10 <post>

My operating system is ubuntu8.10. You can find the installation method for installing the QT compiling environment on the Internet. The following is a brief description:

(1) sudo apt-Get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer

This command installs five software.

Qt4-dev-tools is some toolkit developed by QT, the role of this command is to download some header files and library files of qt4, then decompress, and finally copy the extracted header files to the/usr/include directory, copy the extracted library file to the/usr/lib directory, so that the developer can call the QT header file like the standard C ++ header file when writing the QT program.

The qt4-doc is a help file listing five help documents, QT Assistant/Qt designer/Qt linguist/qmake/Qt reference. Among them, the greatest value is QT reference, which provides great convenience for our developers. Qt reference provides function descriptions for all QT class libraries. It has powerful functions.

Qt4-qtconfig is a tool for configuring QT, which is rarely used.

Qt4-demos is the presentation of some well-written QT projects, and the source code of these projects for developers to reference.

The qt4-designer is a graphical drag-and-drop tool for Qt, similar to the window Program Design in Visual Studio.


(2) sudo apt-Get install qdevelop

This command will install an IDE environment developed by QT. developers can create a QT project in this ide to edit, compile, and debug the QT program.

 

 

Below is my first QT program.

 

# Include <qapplication. h> <br/> # include <qlabel. h> </P> <p> int main (INT argc, char * argv []) <br/> {<br/> qapplication app (argc, argv ); <br/> qlabel * label = new qlabel ("Hello QT! ", 0); <br/> app. setmainwidget (Label); <br/> label-> show (); <br/> return app.exe C (); <br/>}

 

Directly create a project in qdevelop and type, compile, and run the above Code to see the effect .........

 

So long qt .... Linux is the first installation ..

Sweat ...........................

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.