[Development] HEADS UP: Don't use QList, use Q_DECLARE_TYPEINFO
Marc Mutz
marc.mutz at kdab.com
Fri Jul 10 14:24:57 CEST 2015
On Friday 10 July 2015 12:32:45 Smith Martin wrote:
> Maybe it's just me, but I'm still not understanding your explanation, and I
> don't think you are answering my question:
I think the impedance mismatch here is that you use "list" to mean the same
thing as "array" or "vector" (in STL terms, not mathematically) while I only
use it to mean "linked list", in accordance with the STL.
That just goes to show how bad of an influence QList has. But it never hid its
design, and, indeed, the "default container" in Qt 3 was QValueList, which
actually *was* a doubly-linked list. Why Qt always nominates a list as the
default container while the STL recommends std::vector is one of the mysteries
to which only Trolls know the answer :)
--
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
More information about the Development
mailing list