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

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Mon Jun 28 06:34:11 CEST 2010


On Sun, Jun 27, 2010 at 10:12 AM, Oluwafemi Ade <oamaximpact at gmail.com> wrote:
> in .h file :
> class QMap<QString, int>;

Is this really needed? Just the correct include should do...no?

> static QMap<QString, int> converter;
>
> somewhere in .cpp file:
> #include <QMap>

Move this to the .h file.

HTH,
-mandeep



More information about the Qt-interest-old mailing list