[Qt-interest] QModelIndex problems to represent a given data structure
Andre Somers
andre at familiesomers.nl
Tue Jul 6 07:41:59 CEST 2010
Op 5-7-2010 23:04, Scott Aron Bloom schreef:
>
> What I have done in the past, in order to get 64 bits, simply use Model::createIndex( r,c, void*) using a reinterpret_cast< void *>( data ) on your 64 bit data.
>
> Then you simply use internalId to get the value back. The data is stored as a void * internally...
>
>
Is that safe to do on a 32 bits system? I thought that there void* is 32
bits, but perhaps I miss something here.
André
More information about the Qt-interest-old
mailing list