[Qt-interest] Qt Containers (or: why I must use STL)
Ian Thomson
Ian.Thomson at iongeo.com
Tue Oct 13 13:20:42 CEST 2009
Hi,
Michael Bieber wrote:
> Regarding containers - we had hot discussions here at the time of
> introducing Qt4. Personally speaking, bloating a library is a bigger
> issue in comparison and in the long run. Simply the fat-growing thing is
> evil.
The STL libraries tend to run really well but I can't stand the API for
them (especially std::map). So I much prefer the Qt containers.
Aside from personal preference, I would guess the two main reason Qt has
its own data containers are (1) for implicit data sharing, which is very
useful for a lot of GUI stuff, and (2) to create clean and simple
functions which can easily be used with signals and slots.
Although it makes the Qt API larger, I don't think it's 'fat' so much as
'muscle' because it takes away from rather subtle (and dangerous)
responsibilities away from the user code in a safe way.
Cheers,
Ian.
More information about the Qt-interest-old
mailing list