[Qt-creator] Creator Can not locate Qt Headers

Michael Jackson imikejackson at gmail.com
Sat Nov 15 03:29:08 CET 2014

On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar <nikolai.kosjar at theqtcompany.com> wrote:

> Hi!
> On Thu, 13. Nov 12:36, Michael Jackson wrote:
>> The issue is that QtCreator can not seem to locate any Qt Header. There is a red squiggly line under #include <QtCore/QObject> and then none of the syntax highlighting works after that.
> Please check what the Code model gets as input from the Project
> (managers):
> 1) Open a file with unresolved includes
> 2) Open Menu: Tools > C++ > Inspect C++ Code Model
> 3) There, switch to the "Project Parts" tab and the sub tab "Header
> Paths" - check that the includes are reasonable, especially that there
> is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
> Nikolai

Most of the include directories for my project are missing. Where does it pickup the include paths? The .cbp file? None of the Qt frameworks are there. And all the other include paths for my project (Qwt, Boost, HDF5) are all missing also. Ideas?

Mike Jackson

More information about the Qt-creator mailing list