[Qt-creator] 'Custom' projects and Kits

Andreas Pakulat apaku at gmx.de
Mon Dec 19 12:34:48 CET 2016


well, I ended up looking at the sources since I it seems nobody knows
a way and indeed it seems there's not really any way to do this right
now. While its possible to expand environment variables this is using
the environment of the QtCreator process instead of adding things
found in the Kit.

This is even worse when using 4.1 since the clang model flags all Qt
API as errors and does not get Qt-based defines correctly without
finding the Qt headers.

I guess I'll have to come up with a patch myself, since apparently
there aren't too many people here using the generic project manager
with different Qt installs.


On Tue, Nov 22, 2016 at 4:10 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> Hi,
> I'm using the 'custom' project manager in QtCreator for a project with
> a, well, custom buildsystem and just realized that the information
> provided through the Qt version selected for a Kit does not propagate
> into the C++ parser used by QtCreator.
> I wonder wether this is intentional/by design since the only way I'm
> aware of to configure the include directories that QtCreator uses for
> the parser would be the project.includes file in the project
> directory. However for the Qt header locations that file is not
> suitable as it resides inside the source directory of the project (at
> least by default) and hence must not include paths that are different
> for each build.
> Or am I overlooking a way to tell QtCreator the locations of the Qt
> headers per build directory that I have configured?
> I'm still using 3.6.1 so just tell me if I should just shut up and update :)
> Andreas

More information about the Qt-creator mailing list