[Development] qsizetype and classes working with QStrings or QList

Philippe philwave at gmail.com
Tue Aug 25 07:24:52 CEST 2020

> Do we need models with more than 2 billion rows or columns?

More than we need in-memory containers with more than 2 billion entries,

For instance, one could wish to display in a list view, the contents of
a file with more than 2 billions "entries".

But then there would be the need to make QAbstractSlider be able to
handle 64 bit quantities too.


On Mon, 24 Aug 2020 16:09:57 -0700
Thiago Macieira <thiago.macieira at intel.com> wrote:

> On Monday, 24 August 2020 15:10:24 PDT ???? ?????????? wrote:
> > It would be nice if QAbstractItemModel will support qsizetype instead of
> > int, but I do not see how this is possible considering the fact that
> > rowCount/columnCount return int. I suppose, it is not very hard to patch
> > QModelIndex, but what to do with virtual functions? The user code will
> > break. The only solution I see is to add QAbstractItemModelV2 with the
> > «wide» interface and provide a proxy for the old one.
> Do we need models with more than 2 billion rows or columns?
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel DPG Cloud Engineering
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development

More information about the Development mailing list