Do you have both Qt3 and Qt4 installed?
It could be that the qmake of Qt3 is called.