[Development] Proposal: Deprecate QVector in Qt 6
apoenitz at t-online.de
Thu Apr 23 13:29:17 CEST 2020
On Thu, Apr 23, 2020 at 10:02:04AM +0200, André Pönitz wrote:
> On Thu, Apr 23, 2020 at 07:43:33AM +0000, Simon Hausmann wrote:
> > Hi,
> > In dev we've had QVector being an alias for QList for a while now. For
> > the 6.0 release this particular topic (QList/QVector) suggests two
> > goals (among others):
> > (1) Use the same type throughout the public API of Qt.
> > (2) Make it easy for our users to maintain a code base that works
> > with Qt 5 and 6.
> > In the light of those two goals, I think we should keep using QList as
> > the type in the public API. I don't think we should do a search and
> > replace activity and switch to QVector. In the light of that, I would
> > like to propose simply deprecating QVector and stick to QList
> > everywhere.
> > What do you think?
> This would avoid *quite* a bit code churn for user code.
To refine: +1 for staying with QList as the container of choice, and
making QVector an alias for that, but I would not deprecate QVector.
More information about the Development