[Development] QList for Qt 6

Olivier Goffart olivier at woboq.com
Thu May 23 11:50:38 CEST 2019


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)

-- 
Olivier



More information about the Development mailing list