[Qt-interest] Best way to add/delete multiple rows from QAbstractItemModel

Dan O'Connor beguiledfoil at gmail.com
Sun Nov 15 11:01:59 CET 2009


Greetings,

I'm having trouble devising a clean way of deleting multiple objects
from a QAbstractItemModel. The problem is that I usually begin my
operations with a collection of QModelIndex's, which can trivially be
invalidated during the add/remove operations.

I feel like I'm going about this all wrong, can someone suggest a less
problematic approach?

Regards,
Dan O.



More information about the Qt-interest-old mailing list