[Interest] 64-bit internal ID for QModelIndex?

Jan Kundrát jkt at flaska.net
Wed Aug 22 00:52:25 CEST 2012


On 08/21/12 23:47, Nikos Chantziaras wrote:
>    createIndex(row, column, new qint64(value));

This will leak, badly. It also won't likely work the way you intend it
to work, if I understand your problem correctly.

What do you need the 64bit indexing for, actually? From some of the
sample code proposed in this thread, it seems that you are fine with
adding a custom mapping to your QAIM subclass. There are many possible
ways to do that, but it is better to know what is the problem you're
trying to solve before suggesting solutions.

With kind regards,
Jan

-- 
Trojita, a fast e-mail client -- http://trojita.flaska.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120822/211fb0b1/attachment.sig>


More information about the Interest mailing list