Why do you use Qt 3.1? If there is not strong reason for it I would suggest going with Qt 4.x as it is more future proof ;-)
I would suggest reading the qmake user guide as you seem to have the wrong idea about what qmake is.
To quote the above linked manual:
So you would not call it with implementation files directly. If you do not want to read the whole manual, read the 10 minute guide to using qmake which should hopefully tell you how to get the result you desire ;-)qmake is a tool created by Trolltech to write makefiles for different compilers and platforms.
Good Luck :-)
Bookmarks