[Development] QList

Kevin Kofler kevin.kofler at chello.at
Mon Mar 20 23:48:14 CET 2017


Marc Mutz wrote:
> The other option would be to copy QList, strip out the optimisation that
> makes it use layouts other than IndirectLayout and call the result
> QArrayList.
> 
> Disadvantages:
> 
> - migration of QLists used in APIs has to wait until Qt 6
> - two almost identical code bases that are very likely to get out of sync,
>   accidentally or intentionally, before one of them gets ditched in Qt 6
> - duplicate documentation to write, maintain, explain difference, ...
>   With the type alias, we just need to document the alias.

Advantages:

- code that needs QArrayList because it assumes stability of references
  could move to it right now, including the examples you keep bringing up
  every so often. So it would allow fixing bugs now rather than in Qt 6.

        Kevin Kofler




More information about the Development mailing list