[Interest] 64-bit internal ID for QModelIndex?

Stephen Kelly stephen.kelly at kdab.com
Wed Aug 22 10:08:32 CEST 2012


On Tuesday, August 21, 2012 19:33:16 Stephen Chu wrote:

> I was excited to see internalId() returns a qint64. Then realized that
> there's not way to store it. And after reading the source, the ID is
> stored in the void * pointer and cast to qint64 when returned.
> 
> A union of quint64 and void * for the store will save me tons of agony.
> Oh well...

No one worked on it and provided a patch.

https://bugreports.qt-project.org/browse/QTBUG-4865

I'd still consider it if a patch appeared and was well understood in terms of 
performance/memory cost on 32 bit and 64 bit.

Thanks,

-- 
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120822/b7c08c86/attachment.sig>


More information about the Interest mailing list