[Development] Proposal: Deprecate QVector in Qt 6

André Pönitz apoenitz at t-online.de
Thu Apr 23 13:43:43 CEST 2020


On Thu, Apr 23, 2020 at 12:17:38PM +0200, Daniel Engelke wrote:
>    > You'd need also adapt some variable and function names,
>    > comments and documentation are silently broken.
> 
>    I don't really see it, unless you name all variables like qListMyList.
> 
>    As for comments it's not like the logical meaning changes. Besides,
>    QList will have QVectors implementation anyway,
> 
>    making comments or variable names that focus on it being a list
>    illogical anyhow. (Besides QList was never a list to begin with)
> 
>    Either way you'll have the same issues with API that is using QVector.
> 
>    That would need to be changed to QList to be consistent.

In other parts of the discussion the point was made that such a renaming
is trivial, and it stands to reason that there's quite a bit more code
using QList in the wild than QVector.

So overall eco-system-effort to convert to QVector is higher than staying
with QList.

Andre'


More information about the Development mailing list