[Qt-creator] pro file and CONFIG

Ernst Huber swmail01 at systest.ch
Fri Feb 27 17:43:16 CET 2009


Justin Giles schrieb:
> I'm not sure if this is a bug or if I'm doing something wrong (just 
> started using Qt a month ago).  I added the line "CONFIG += uitools" 
> to my .pro file.  When I did this, I lost all code completion for my 
> external libraries.  When I remove that line from my .pro file, then 
> code completion comes back.  Thoughts?
>
> Thanks,
>
> Justin
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>   
Assigning "uitools" to CONFIG makes sense for scope handling as in this 
example taken form Qt doc:

 CONFIG += qt console newstuff
 ...
 newstuff {
     SOURCES += new.cpp
     HEADERS += new.h
 }

I can't guess any other reason because CONFIG is used for project configuration and compiler
options which are pre-defined and described in qmake manual here:

http://pepper.troll.no/s60prereleases/doc/qmake-variable-reference.html#config

Regards
Ernst






More information about the Qt-creator-old mailing list