[Interest] Three-file modules vs. moc

Bernhard Lindner private at bernhard-lindner.de
Thu Aug 27 20:46:32 CEST 2020


Hi Thiago!

> Add to your module.cpp:
> 
> #include "moc_module.cpp"

Works well, thank you!

> This is recommended anyway, regardless of your problem. Always #include the 
> module output for your headers in your corresponding .cpp files.

Can you explain that general recommendation? It seems to me that such includes are only
useful in special cases like mine and like .cpp files containing moc relevant code.

-- 
Best Regards,
Bernhard Lindner



More information about the Interest mailing list