[Qt5-feedback] Real 64 Bit support ?

Andre Somers andre at familiesomers.nl
Thu May 12 16:09:33 CEST 2011


Op Do, 12 mei, 2011 3:51 pm, schreef André Pönitz:

>> But I _can_ see that there may be cases where you'd like to have more
>> space. Dare I suggest that perhaps the Qt container classes should be
>> templated with respect to their index type? Default would still be
>> Q_INT32, but you could pass in Q_INT64 if needed?
>>
>> QList<MyType> myNormalList;
>> QList<MyType, Q_INT64> myHugeList;
>>
>> or something like that?
>
> Possible.
>
> But: Have you ever _personally_ needed that, for a Q* container?
No, I have not.

> I already admitted that I already used larger data sets, so I am not
> disputing that these cases exist. I just don't believe they are common
> enough to justify the transition pain and feature loss otherwise.
That is true, if such pain exists.

>>From my (personal, but now sure how personal) point of view, keeping
> source compatible with Qt 4 as much as _painlessly_ possible is a
> worthy goal. I am not against breaking it if there is a _real_ gain, but
> in this case here I simply can't see any.
I agree fully.

> [And yes, the proposed change breaks sources, albeit in a minor way.
> Introducing the second template argument would trigger a change to
> three lines in the Creator source code (forward declarations of QList)]
Does it really? If you have a default for the second parameter that is
equal to the current value, I don't think there is a source
incompatibility introduced?

André S.




More information about the Qt5-feedback mailing list