[Qt-jambi-interest] Model/View problem: remove functionality for the model

Ying Ma y.ma at trinite.nl
Tue Aug 12 17:39:35 CEST 2008


 Research & Development

________________________________________________________________________
Dear sir,

    When I tried to remove some model indexes from the model, I saw the
whole model index list
of the model changed so the previous selection became a mess. I do use
"beginRemoveRows()"
and "endRemoveRows()" to inform both the model and the views attached to
the model. On the
other hand, it doesn't has any problem when I tried to add some model
indexes to the model. 
    Any clue for it? Is there any ways to maintain the model index list
for the model when perform
the remove functionality? How to make the rest can works well when I
remove some from the
model?

    Did I make any sense? Hope you can answer my question.

    Best regards,








Ying Ma
Trinité Automatisering
B.V.
Tel. : 0297 382460
               
Post-adres:  Postbus 189
Direct: -
Research & Development
1420 AD Uithoorn,
Nederland
Fax : 0297 273049
             
Bezoek-adres: J.N.
Wagenaarweg 6
Email: y.ma at trinite.nl
       
1422 AK Uithoorn,
Nederland
Website: www.trinite.nl



________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20080812/4d556a16/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: banner.png
Type: image/png
Size: 46892 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20080812/4d556a16/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Trinilogo.jpg
Type: image/jpeg
Size: 4968 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20080812/4d556a16/attachment.jpg 


More information about the Qt-jambi-interest mailing list