1. download version 4.4.1 from the official QT website. Official website address: Release. 2: Find a directory with enough space, which requires about 2 GB of free space. Extract tar-xvfqt-x11-o
1: download version 4.4.1 from the official QT website.
Http://trolltech.com/,Qt Open Source Edition for C ++ Developers: X11 Download
The file is qt-x11-opensource-src-4.4.1.tar.gz.
Find an image and download it.
2: Find a directory with enough space, which requires about 2 GB of free space. Extract tar-xvf qt-x11-opensource-src-4.4.1.tar.gz;
3: If it is a newly installed Ubuntu8.0.4, You have to install gcc. Run sudo apt-get install build-essential, OK,
After installation, because this version is based on x11, You have to install the x11 library and continue to sudo apt-get install build-essential, OK
4: Enter the decompressed folder and run./configure,
5: make
6: First sudo su, switch to root, and then run make install
7: After installation, you also need to add the binfile of QT to the environment variable, my directory in/usr/local/Trolltech/Qt-4.4.1/bin,
# Sudo gedit. profile
PATH:/usr/local/Trolltech/Qt-4.4.1/bin: $ PATH
Export PATH
Add it to the end of the profile file, save it, and restart the machine;
8: After restarting, open the terminal and test the designer and assistant. For convenience, you can add these to the main menu. Choose system> preference> main menu to create the menu QT, add assistant to the project,
OK, enjoying it