As I said in the other thread, moc treats the "Qt" namespace in a special way. And it's not releated to Q_MOC_RUN (at least that's not enough). There is a clause in moc source code related to the namespace. You can see that in Generator::generateCode() in src/tools/moc/generator.cpp (and likely elsewhere too).
Bookmarks