Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-22 Thread Bo Thorsen
Den 21-08-2012 20:55, Stephen Chu skrev: Is there a way to store a 64-bit internal ID in QModelIndex? The function QModelIndex::internalId() returns a 64-bit number but there's no way to put one in. The constructor takes only a 32-bit integer. Hi Stephen, Please forget all ideas of using the

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 3:35 PM, Christoph Feck wrote: On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: Is there a way to store a 64-bit internal ID in QModelIndex? The function QModelIndex::internalId() returns a 64-bit number but there's no way to put one in. The constructor takes only a 32-bit

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Nikos Chantziaras
On 21/08/12 23:55, Stephen Chu wrote: On 8/21/12 4:26 PM, Nikos Chantziaras wrote: On 21/08/12 22:45, Stephen Chu wrote: On 8/21/12 3:35 PM, Christoph Feck wrote: On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: Is there a way to store a 64-bit internal ID in QModelIndex? The function

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 5:47 PM, Nikos Chantziaras wrote: On 21/08/12 23:55, Stephen Chu wrote: On 8/21/12 4:26 PM, Nikos Chantziaras wrote: On 21/08/12 22:45, Stephen Chu wrote: On 8/21/12 3:35 PM, Christoph Feck wrote: On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: Is there a way to store a

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Nikos Chantziaras
On 22/08/12 00:54, Stephen Chu wrote: On 8/21/12 5:47 PM, Nikos Chantziaras wrote: On 21/08/12 23:55, Stephen Chu wrote: On 8/21/12 4:26 PM, Nikos Chantziaras wrote: On 21/08/12 22:45, Stephen Chu wrote: On 8/21/12 3:35 PM, Christoph Feck wrote: On Tuesday 21 August 2012 20:55:00 Stephen Chu

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 6:52 PM, Jan Kundrát wrote: 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