[Qt-interest] QModelIndex problems to represent a given data structure
Justus Best
just18 at gmx.de
Mon Jul 5 22:58:48 CEST 2010
> It gets worse. You only get 32 bits, not 64. Sorry to disapoint you, but
> QAbstractItemModel::createIndex only takes a 32 bits int (quint32, to be
> exact).
Jep, thought so, thats why I used the subjunctive, or at least tried it
:p. My English grammar lessons are quiet a while back.
Was just hoping for an explanation why it only takes a 32bit int, also
there seems to be an undocumented version which takes an int in addition
to the quint32.
Justus
Am 05.07.2010 22:21, schrieb Andre Somers:
> Op 5-7-2010 21:37, Justus Best schreef:
>> Hi Andre,
>>
>> Thanks for your help, was hoping for an "better" solution then bit
>> shifting and masking my id to get all the infos I need to determine my
>> elements.
>> I guess its a good thing that the id is an unsigned int, caus I don't
>> have to worry about algebraic sign, but it would be even better if I
>> would get all the 64bits for my id. Maybe Thiago can give a Statement to
>> this if he has some time to spare ;P.
>>
>> Kind regards
>> Justus
>>
> It gets worse. You only get 32 bits, not 64. Sorry to disapoint you, but
> QAbstractItemModel::createIndex only takes a 32 bits int (quint32, to be
> exact).
>
> André
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list