What is the correct way to install Qt from the Ubuntu package sources on Ubuntu 10.04?

Somehow I managed to install Qt on my machine from the Ubuntu packages and I could compile some example programs. This was about a week ago. Then, I tried to install qwt, from the package sources as well, but since then Qt has not worked at all.

I have tried to totally remove Qt from Synaptic and re-install it but all attempts have failed

sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui

is my latest attempt.

What I noticed, is that the non-working installation uses an older version of qmake than the version that compiled the example snippets a week ago. There is some older stuff on the machine that cannot be erased by removing the packages from synaptic??

If I try to install Qt with the Nokia installer, how can I remove all the files and reset the state of my machine to the original state when I need the space for something else?


teele