Qt Creator failing to find Qt headers in working cmake+Qt project
Unsolved
Qt Creator and other tools
-
I've installed Qt from Qt's online installer in Ubuntu 16.04, and I am using Qt Creator to work on a cmake+Qt project. The Qt project links to the Qt versions installed by Qt's online installer by setting the path to the Qt library through the
CMAKE_PREFIX_PATH
variable.Although the Qt Creator manages to build the project without any problem, Qt Creator is unable to find any Qt headers, listing every #include statement as "No such file or directory" and failing to run any autocompletion on Qt code.
Does anyone know how to get Qt Creator to find Qt headers in a cmake+Qt project?
-
Hi,
It's determined by the Kit used.
What version of Qt Creator are you using ?
-
Did you check your kit for any errors ?