[Development] Proposal: Deprecate QVector in Qt 6

Simon Hausmann Simon.Hausmann at qt.io
Thu Apr 23 11:15:29 CEST 2020


Hi,

Ah yes, I'm suggesting to keep the implementation in Qt 6, so:

    Qt 6 QList == Qt 6 QVector and deprecate Qt 6 Vector.


Or differently put:

Currently:

    template <typename T> class QVector { $(implementation to be moved) }
    template <typename T> using QList = QVector<T>;

Proposed:

    template <typename T> using QVector = QList<T>; // mark deprecated
    template <typename T> class QList { $(implementation to be moved); }

I hope that clarifies the intent.

Simon
________________________________
From: Development <development-bounces at qt-project.org> on behalf of Albert Astals Cid via Development <development at qt-project.org>
Sent: Thursday, April 23, 2020 10:52
To: development at qt-project.org <development at qt-project.org>
Subject: Re: [Development] Proposal: Deprecate QVector in Qt 6

El dijous, 23 d’abril de 2020, a les 10:23:21 CEST, Simon Hausmann va
escriure:
> Hi,
>
> Yes, apologies, QList is an alias for QVector. I propose to switch that
> around.

But keeping which implementation?

I.e. it's not clear if you are suggesting to make
   Qt6 QList == Qt5 QVector and deprecate Qt6 QVector
or
   Qt6 QList == Qt5 QList and deprecate Qt6 QVector

Cheers,
  Albert

>
>
> Simon
>
> ________________________________
> From: Development <development-bounces at qt-project.org> on behalf of Albert
> Astals Cid via Development <development at qt-project.org> Sent: Thursday,
> April 23, 2020 10:16
> To: development at qt-project.org <development at qt-project.org>
> Subject: Re: [Development] Proposal: Deprecate QVector in Qt 6
>
> El dijous, 23 d’abril de 2020, a les 9:43:33 CEST, Simon Hausmann va
escriure:
> > Hi,
> >
> > In dev we've had QVector being an alias for QList for a while now.
>
> It's the other way around, isn't it?
>
> corelib/tools/qcontainerfwd.h:
> template<typename T> using QList = QVector<T>;
>
> Cheers,
>   Albert
>
> --
> Albert Astals Cid | albert.astals.cid at kdab.com | Senior Software Engineer
> Klarälvdalens Datakonsult AB, a KDAB Group company
> Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
> KDAB - The Qt, C++ and OpenGL Experts
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development


--
Albert Astals Cid | albert.astals.cid at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts

_______________________________________________
Development mailing list
Development at qt-project.org
https://lists.qt-project.org/listinfo/development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200423/3603b255/attachment.html>


More information about the Development mailing list