This is an old revision of the document!
sudo apt-get install qtcreator
2.download QT lib from http://qt-project.org/downloads, in this guide use below
3. install lib
sudo apt-get install mesa-common-dev freeglut3 freeglut3-dev libqglviewer-dev-common
4. configure QT lib
mkdir -p /usr/local/qt/ ./configure -no-pch -opengl --prefix=/usr/local/qt/
5. compile and install
make make install
The compile process will use several hours,please be patient.
After compiled ,enter
examples/widgets/wiggly/,there is some sample code you can use .Like below