Qt-interest Archive, April 2007
How does QItemSelectionModel behave when adding/removing rows ?
Message 1 in thread
Hi all,
Before starting some heavy coding, I'd need to understand how instances of
QItemSelectionModel behave when rows are added/removed to/from the model.
Since QItemSelectionModel does not have "rowsInserted /
rowsAboutToBeRemoved" slots (such as QAbstractItemView), I guess that a
SelectionModel may not maintain by itself the validity of its
QModelIndexes...
Is that correct ?
In other words, when instanciating a QItemSelectionModel of my own (not
within a view), do I have to add/remove/maintain its QModelIndexes myself
when rows are added/removed in the model ?
Or does Qt silently does this for me ?
Thanks for any hint,
Best-
Nicolas
--
[ signature omitted ]