[Interest] Qt container size()

André Somers andre at familiesomers.nl
Thu Jan 29 14:48:21 CET 2015


Felix morack schreef op 29-1-2015 om 14:32:
> Hi,
>
>
> Qt containers use 'int' to refer to their size thus limiting their 
> size to INT_MAX.
>
> Is there any reason for this? Why dont they use size_t like the STL 
> and the rest of the world?
>
> It's 2015, people will increasingly bump into this limitation - i just 
> did. I very much prefer QTL over STL for easier Qt integration, 
> superior API and implicit sharing. But this is a bit of a bummer.
>
>
> Any plans to fix this situation for Qt6?
Basically: if you need data sets that large, you're better off designing 
your own specialized data structures.

That, and being able to use negative values for special purposes.

André




More information about the Interest mailing list