[Qt-interest] Fwd: what is wrong with qt containers

Oluwafemi Ade oamaximpact at gmail.com
Sun Jun 27 06:04:05 CEST 2010


Thanks......I of course included <QString>, everything........I think what
the compiler is saying has to do with the c++ .h file qt generated (I don't
know)

On Sat, Jun 26, 2010 at 11:45 PM, Rohan Prabhu <rohan at rohanprabhu.com>wrote:

> if you're using QMap<QString, int>, you must include both <QMap> and
> <QString>. Only <QMap> won't suffice i.e. you must make sure that if
> you're using a container QContainer<Type1, Type2 ... TypeN>, then
> Type1, Type2.. TypeN must all be defined completely prior to using the
> container.
>
> On Sun, Jun 27, 2010 at 9:00 AM, Oluwafemi Ade <oamaximpact at gmail.com>
> wrote:
> > Hello, I found out that upon using the qt containers such as QMap<key,
> > value_type>, the compiler keeps saying things like invalid use of
> incomplete
> > type, for ex, I declared QString<QString, int> converter.........and
> > included <QMap> , but it still complains and many other cases that are so
> > much to begin to list them all here........please any help?
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100627/6b3a6d17/attachment.html 


More information about the Qt-interest-old mailing list