Steps to reproduce:
- Create a new Qt Widgets Application
- Open mainwindow.cpp
- The screen contains error and warning annotations about incomplete type 'Ui::MainWindow'
- Build the project
- Important: change the file mainwindow.cpp (e.g. by adding a space)
- The error and warning messages disappear
The procedure repeats if you e.g. add a Label to the user interface and want to access it in source code. After compiling, the error disappears and code completion works.
Note that this works flawlessly when Clang Code Model is disabled.