[Interest] move methods in QList
Thiago Macieira
thiago.macieira at intel.com
Wed Oct 11 21:08:52 CEST 2017
On terça-feira, 10 de outubro de 2017 14:31:05 PDT Christian Gagneraud wrote:
> It's full of interesting information, like:
> - Don't use Qt container, unless you have to
> - Do not use QList, prefer QVector.
And I complained to him right afterwards.
The advice should be:
- do use the Qt Containers, unless you can't
- use QVector, not QList, unless you need QList'svery specific behaviour
(if you don't know what that is, you don't need it)
Out of the discussion at the Qt Contributor Summit, we concluded we will most
likely keep our containers in Qt 6 and they'll continue to be implicitly
shared. We may provide a non-implicitly-shared alternative (with all the Qt
look and feel, possibly even exception-safe for QVector, QMap and QHash).
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list