[Qgis-developer] STL vs. Qt containers

Gavin Macaulay g.macaulay at niwa.co.nz
Fri Oct 27 04:39:41 EDT 2006


Hi,

I prefer the STL containers. I find them to have a more consistent
interface than the Qt ones, although with Qt4 most, if not all, of the
containers work with STL algorithms and have STL-like functions.

Gavin

> Hi devs,
>
> QGIS code uses a mixture of containers (e.g. map, vector, list, set)
> from standard C++ library and Qt. I'd like to hear your opinions about
> moving completely to Qt containers (QMap, QVector, ...). Benefit of
> this would be a "smoother" and more Qt-ish API, possibility to use
> java-style iterators and more.
>
> Overview of the containers:
> http://doc.trolltech.com/4.2/qt4-tulip.html
>
> If noone objects against it, I would change it in the refactoring
> branch. This will allow making the python bindings easier.
>
> Martin
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>





More information about the Qgis-developer mailing list