Makefile project and precompiled headers



  • I have an external project that I have imported into qtcreator ("Import Existing Project"). This external project uses precompiled headers. The precompiled header file is not included in any of the project's header files, so when I edit those files in qtcreator, I don't get tooltips, code completion or correct highlighting.

    Is there a way to tell qtcreator what the precompiled header is for parsing purposes, perhaps through the .creator or .config files?



  • @Esperantisto said:

    Is there a way to tell qtcreator what the precompiled header is for parsing purposes, perhaps through the .creator or .config files?

    Sure, you can use the <projectname>.includes file and add the additional include paths.



  • That doesn't tell the parser which files are being included.



  • @Esperantisto said:

    That doesn't tell the parser which files are being included.

    Well, it definitely does for me... I regularly create project from pre-existing makefiles which are in a folder directory different from the sources. Are you talking about the sources of the project? In that case use the <projectname>.files file. But the included files are loaded from the various includes location defined in the <projectname>.includes, and the help / documentation and signatures are loaded from there as well.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.