In a simple gui created with the qt widgets application template (no modifications) the following lines result in some code model warnings, at some point of time, not right after project loading, but after a short period of time or writing some code it comes up:
the code model does not find the generated ui_mainwindow.h. If I follow the #include a temporary empty file with that name gets opened, for example:
I tried this both with a qmake project and a cmake project, both resulting in the same errors. Compilation does work fine however.
In the cmake project I worked arround it by adding the project_autogen folder explicitly to the include folders and using
instead, which points to the correct, generated file. Right now I did not try to find a work arround with qmake.