[Qt-interest] Question with QModelIndex
shiva sitamraju
shivaenigma at gmail.com
Fri May 22 11:42:58 CEST 2009
Hi all,
We have a thread running which inserts rows into a model index. We have
implemented the insertRows() function from QAbstractItemModel.
The application throws errors like:
QTreeView::rowsInserted internal representation of the model has been
corrupted, resetting.
We are assuming this is because the model index of the inserted row changes
before the ui has updated the view (because
of frequent inserts). We though maybe QPersistentModelIndex may help if we
can use it to maintain consistent modelindex.
Thanks
-Shiva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090522/fbb47ec9/attachment.html
More information about the Qt-interest-old
mailing list