[Development] QList for Qt 6

Lars Knoll lars.knoll at qt.io
Thu May 23 12:21:19 CEST 2019


> On 23 May 2019, at 11:50, Olivier Goffart <olivier at woboq.com> wrote:
> 
> On 22.05.19 15:49, Lars Knoll wrote:
> [...]
>> 2. Move QStringList and QByteArrayList over to inherit from QVector (that should be source compatible)
>> 3. Rename QStringList to QStringVector (keep QStringList as a compatibility name), same for QBAList
> 
> I wouldn't do that.
> I'd just make  using QStringList = QVector<QString>;
> and let QVector<T> inherit from QVectorSpecialMethods<T> which would be specialized for QString and QByteArray (similar to what QListSpecialMethods is today)

Of course, that’s what I actually meant :)

Cheers,
Lars



More information about the Development mailing list