[Interest] Again this problem but now on Linux

william.crocker at analog.com william.crocker at analog.com
Mon May 4 13:34:23 CEST 2015


> If you define your classes in .h files (not .cpp files) and run qmake,
> then you don't need to #include anything that moc produces.

And if I only use a Q_OBJECT based class in one .cpp file I should
now have to break it out into it's own header file just to make the
build system happy.

I accept the (apparent) fact that, in these cases,
I need to #include "x.moc" at the end of my x.cpp file.

Bill



More information about the Interest mailing list