Il 27/08/20 20:46, Bernhard Lindner ha scritto:
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.
Including moc from the C++ code reduces compilation times (one "slightly larger" file to compile, not two) and enables the compiler to optimize more aggressively without resorting to LTO. As such it's always useful to do.
HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest