I'm not sure whether this problem is caused by a bug in moc, or a bug in VS Tools. Problem description is here: <https://forum.qt.io/topic/114726/bug-with-moc-parsing-of-include-directorie s> David