[Qt-creator] Code completion
Jon Crowe
jonc at ukfsn.org
Sun Nov 2 14:48:30 CET 2008
On Sunday 02 November 2008 09:00:47 you wrote:
> ________________________________________
> From: qt-creator-bounces at trolltech.com [qt-creator-bounces at trolltech.com]
> On Behalf Of ext Jon Crowe [jonc at ukfsn.org] Sent: Saturday, November 01,
> 2008 11:07 AM
> To: qt-creator at trolltech.com
> Subject: [Qt-creator] Code completion
>
> > Hi,
> >
> > Great job on qt-creator. Probably the most usable Alpha software ever!
> >
> :)
> :
> > I'm running it on KDE 4.1.
> >
> > I've imported an existing project using the .pro file. Code completion
> > works for Qt types, but doesn't recognise any of my own classes that are
> > part of the project. Am I doing something stupid, or missing something
> > obvious?
>
> I'd say neither nor, it should just work.
> Does the editor underline the #include directives for the header files of
> your custom data types? If yes, we might not get the INCLUDEPATH's right in
> this case ... Could you try it with a rather minimal example?
Another poster has identified the problem. My classes are declared within a
namespace. If I specifically qualify instances of my classes with the
namespace when declaring them, code completion becomes available. At present
everything within the project is in the same namespace, so I hadn't realised
this was needed.
Thanks,
Jon.
More information about the Qt-creator-old
mailing list