[Development] qsizetype and classes working with QStrings or QList

Lars Knoll lars.knoll at qt.io
Thu Aug 27 09:52:10 CEST 2020

> On 27 Aug 2020, at 09:12, Philippe <philwave at gmail.com> wrote:
> On Wed, 26 Aug 2020 06:36:27 +0000
> Lars Knoll <lars.knoll at qt.io> wrote:
>>> * QAbstractItemModel
>>> * QModelIndex
>> I don’t think we should port these to use qsizetype.
> If you mean, the effort would be too big, or there is lack of resources
> to do it, or too many API breaks for Qt 5 to 6, then I can agree.
> But if you mean there is no usage need, I disagree.

If I were do design these from scratch, I would certainly use qsizetype here, maybe even a qint64 (because one can handle those large data sets on 32bit systems as well with on demand loading of the data).


More information about the Development mailing list