Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.9.5
-
None
-
GCC 7.3, Linux, CMake 3.10.3
Clang 5, Linux, CMake 3.10.3
Description
If `Q_NAMESPACE` is used, the moc compilation fails with
'Q_NAMESPACE' does not name a type
Unless `#include <QtCore/QObject>` is added. This isn't due to the fact that QObject define the macro, but rather that the moc own `#include` misses it AND the `qobjectdefs.h` also miss some of it's own dependencies as well. Only adding a long chain of internal `#include` solves the problem unless QObject is included (because it has that chain of include)