Have a look at the snippet from a .pro file that links to Qwt for a hint:
http://www.qtcentre.org/forum/f-newb...lem-26366.html