[PyKDE] QAbstractItemView Question

Matt Chambers chambers at imageworks.com
Mon Nov 20 18:51:05 GMT 2006


Andreas Pakulat wrotee
>> I can detect if one of these elements is not in the new ElementTree, but, how 
>> do I get the info needed
>> to call beginRemoveRows( QModelIndex parent, int row, int col).  I can get the 
>> row,col no problem,
>> but how can I get the deleted items parent QModelIndex?
>>     
>
> Well, you have to have some mapping from Element back to a proper index,
> i.e. you need a way to get the index for an Element in the tree. Then
> you can call parent() on that index.
>
> Andres

I remember reading something about how the indexes are temporary.  I was 
under the impression
that they would go away and be re-created as needed?

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20061120/57e6aea3/attachment.html


More information about the PyQt mailing list