[Interest] Qt containers deprecated with 5.0?

Philip Schuchardt vpicaver at gmail.com
Mon Nov 28 19:18:38 CET 2016


After reading some articles some types like QString are marked as movable
and are efficiently stored in QList. They'll use about the same amount of
memory as a QVector so it seems unlikely for QStringList to switch to
QStringVector. Plus you can add QVector<QString> yourself with a typedef.
:D

On Mon, Nov 28, 2016 at 1:04 PM Jason H <jhihn at gmx.com> wrote:

>
> >
> > Op 28/11/2016 om 11:27 schreef Michael Sué:
> > > Hi André,
> > >
> > >> There is nothing wrong with using Qt containers either (with the
> exception of QList, which you will want to stear clear of as much as you
> can), as as
> > >> noted, you can (and should) use the std algorithms on them just fine.
> > > What's wrong with QList (as compared to other implementations of a
> list)?
> > >
> > What makes you think that QList implements a list (like other
> > implementions at least)?
> >
> > Anyway: see the blog or one of the recorded talks from Qt conferences on
> > this topic. You will want to get into the habbit of raising a red flag
> > whenever you do a code review and find a QList, and start typing QVector
> > instead of QList whenevery you write code yourself.
>
> I look forward to using QStringVector
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-- 
Phi|ip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161128/6599dd15/attachment.html>


More information about the Interest mailing list