[Development] qsizetype and classes working with QStrings or QList

Thiago Macieira thiago.macieira at intel.com
Tue Aug 25 01:09:57 CEST 2020


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





More information about the Development mailing list