Steps for installing the qt development environment in ubuntu

Source: Internet
Author: User
Tags qt designer
This article describes how to install the qt development environment in ubuntu.

I. install Qt in Ubuntu

Copy codeThe code is as follows:
$ Sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer

Note: The qt4-dev-tools contains tools such as Qt Assistant and Qt Linguist, so you do not need to install them separately. Others, qt4-doc is a help document that contains detailed descriptions of various class libraries in Qt and a wide range of example programs that can be opened using Qt Assistant tools. The qt4-qtconfig is a dialog box for configuring the Qt environment, which is usually the default and is rarely necessary to change. The qt4-demos contains many executable files and source code that can run. A qt4-designer is a designer used to design a GUI.

II. install the MySQL driver

Copy codeThe code is as follows:
$ Sudo apt-get install libqt4-sql-mysql

3. install a third-party QWT Library

Copy codeThe code is as follows:
$ Sudo apt-get install libqwt5-qt4 libqwt5-qt4-dev

Note: after installing these components, open Qt Designer and you will find that the "Qwt Widget" group is added to the left Widget list;

IV. install the integrated development environment QDevelop

Copy codeThe code is as follows:
$ Sudo apt-get install qdevelop

Note: You do not have to install it. but in my personal sense, you can use Qdevelop to write code, compile and debug, and use the QtDesigner to design the interface, which improves development efficiency.

Related Article

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.