[Qt-interest] QModelIndex problems to represent a given data structure

Andre Somers andre at familiesomers.nl
Mon Jul 5 22:21:14 CEST 2010


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é



More information about the Qt-interest-old mailing list