to answer your question i think you might need to do -lqt-mt instead of -lqt. but i am not so sure really.. however....
why compile directly and not use the qmake utility that comes with qt?
qmake -o Makefile myproject.pro creates the makefile based on info it gets from the myproject.pro file..
basically it makes more sense if you use qt designer (very useful especially since you would generally use qt library to make GUIs) and let it generate the project file automatically for you, but u can also write it on your own.. its very simple... check out /usr/lib/qt/examples for some project files or open qt designer by typing 'designer' in ur shell. should be easy enough to find your way around..
also here is a a few qt related help sites:
http://www.qtforum.org/
www.qtcentre.org
nass