I have tested with Qt 3.3.5 (linux) and Qt 4.1.0 (linux). Here's the case: I have gcc and icc installed in my linux box. For a Qt project if I run qmake -spec linux-g++ I get a Makefile that builds flawlesly with g++. If I delete the Makefile and run qmake -spec linux-icc I get a Makefile that also builds flawlesly using icc. The problem is that if I don't delete the gcc Makefile and run qmake -spec linux-icc I get the gcc Makefile again. Probably qmake just checks if the project has changed (new libs, source files, deps whatever) to generate a Makefile, but when the compiler changes does nothing. Is there a clever way around this? My question is for the QtWorkbench plugin I'm writing for Code::Blocks (you can get some info here) and deleting the Makefile "by hand" is not an option. Let's see if anyone else can come up with something. Thanks for your time,
Yorgos