[Qt-creator] Creator Can not locate Qt Headers

Nikolai Kosjar nikolai.kosjar at theqtcompany.com
Fri Nov 14 09:34:28 CET 2014


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




More information about the Qt-creator mailing list