1. Install Qt $ sudoapt-getinstallqt4-dev-toolsqt4-docqt4-qtconfigqt4-demosqt4-designer In Ubuntu. Note: The qt4-dev-tools contains tools such as QtAssistant and QtLinguist, so you do not need to install these two tools separately. Others, qt4-doc is a help document that contains detailed descriptions of various class libraries in Qt and rich examples
I. Install Qt in Ubuntu
$ 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
$ Sudo apt-get install libqt4-sql-mysql
3. Install a third-party QWT Library
$ 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
$ 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 Qt Designer to design the interface, which improves development efficiency.
5. Complete