[Qt-creator] registering external libraries

Richard Baron Penman richardbp+qt at gmail.com
Mon Mar 16 11:38:07 CET 2009


On Mon, Mar 16, 2009 at 9:27 PM, Daniel Teske <daniel.teske at nokia.com>wrote:

> On Monday 16 March 2009 02:56:02 ext Richard Baron Penman wrote:
> > hello,
> >
> > Until now I have been developing in Visual Studio. I tried opening and
> > building my project in Qt Creator and it all worked - fantastic! The only
> > downside to Qt Creator for me is that non-Qt libraries don't seem to be
> > well integrated into the editor. For example when I include a non-Qt
> header
> > file Qt Creator underlines it in yellow because "No such file or
> > directory". The code completion also only works for the native Qt
> > libraries.
> >
> > So, is it possible to register an external C++ library so that Qt Creator
> > can detect the header files and perform code completion like in VS?
>
> You do that by adding a INCLUDEPATH[1] variable to your pro file. (You also
> might need to set the LIBS variable.) This tells the qmake and our code
> completion where to find the headers.
>
> daniel
>


hello,

I already have those values set in my pro file (otherwise my project would
not build!).
Can you think of a reason why Qt Creator would not interpret the values
correctly (such as spaces in the path)? I am using version 1.0 on Windows
XP.

Is there an alternative way to force including a path besides in the pro
file?

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090316/28fdef76/attachment.html 


More information about the Qt-creator-old mailing list