Ok finally i managed to install Qwt on Ubuntu 9.04 and run the examples. It is really simple once you figured out how to install the whole thing. I will post it my step by step guide 
1. Go to http://sourceforge.net/projects/qwt and download the tar.gz file
2. Extract the package into your home folder \home\YOU\Qwt-5.2.0
3. Open the Terminal and change into the Qwt directory
cd 'home\YOU\Qwt-5.2.0'
cd 'home\YOU\Qwt-5.2.0'
To copy to clipboard, switch view to plain text mode
Then
qmake
qmake
To copy to clipboard, switch view to plain text mode
sudo make
sudo make
To copy to clipboard, switch view to plain text mode
sudo make install
sudo make install
To copy to clipboard, switch view to plain text mode
Okay. Now we have to link the shared libraries. Go to the following folder
\etc\ld.so.conf.d and open the file libc.conf
Something like
# libc default configuration
/usr/local/lib
# libc default configuration
/usr/local/lib
To copy to clipboard, switch view to plain text mode
should be in there. Add the line
/usr/local/qwt-5.2.0/lib
/usr/local/qwt-5.2.0/lib
To copy to clipboard, switch view to plain text mode
Save and close the file. Now lets go back to the terminal.
Simply enter
sudo ldconfig
sudo ldconfig
To copy to clipboard, switch view to plain text mode
To test everything change the path of the terminal to the examples path of qwt and run qmake and make again
cd \home\YOU\Qwt-5.2.0\examples
qmake
sudo make
cd \home\YOU\Qwt-5.2.0\examples
qmake
sudo make
To copy to clipboard, switch view to plain text mode
now open the examples.pro file with the qcreator and everything should work fine.
Bookmarks