Hello.

I've got a problem building application that contains 2 classes with the same name under different namespaces.
AFAIK this situation is legal for C++ classes. However I was not able to build this application with qmake (Qt 4.6.2) because it creates derived files for those classes in the same directory.
I.e.
1. object files (Foo.o)
2. moc files (moc_Foo.cpp)
3. uic generated files (ui_Foo.h)

As these files for both classes are generated in the same directory they override one another and the build fails.

Is there a solution for this problem? (Except avoiding duplicate class names)

Thanks.