Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Cannot inlcude includes ??
AnneRanch last edited by
This post is deleted!
JonB last edited by
The warnings tell you despite the
#includes it doesn't know what class
MainWindowis. That in turn comes from the banner message at the top, telling you the code "could not parse" some included file(s), for whatever reason.
Either you have some error in one of the two
#included files (maybe the Show Details button would tell.)
Or, if you have upgraded to Ubuntu 20.04 recently(?), the version of clang --- used for Creator's Code Model --- supplied with the OS is not up-to-date enough for Creator. You will have clang 8, but you need clang 9. I think the command is
sudo apt install clang-9, then exit & re-enter Creator and all will be good.
Just a small issue in the code model or in mainwindow.h - tooling problem.