Search code examples
c++qtclangqt-creator

Qt Creator Clang Code Model can't find included header in included header


My problem is as follow: The clang code model from Qt Creator is unable to find the first header included in the header file of a cpp file.

CPP-File:

cpp file

Header file of that cpp-file:

header file

As you can see, the code model has no issues finding QDialog in the header file, but has so in the cpp file. I have the same issue in other files too. The project compiles without problems too. I already deleted the cache files in my build folder and reindexed all again. I can't find the log files of clang tho.


Solution

  • Disabling unity build fixed it.