I have installed QT3 and QT4 on same machine. I want to compile a project using qt4. But every time i run its taking qt3 only.How to make it compile with QT4.?

Os: Fedora 8
Thank you