Inconsistency between model and view while removing a row from a table.
Unsolved
QML and Qt Quick
-
wrote on 24 Jan 2020, 11:53 last edited byThis post is deleted!
-
wrote on 24 Jan 2020, 12:20 last edited by
@Ahti
Perhaps not relevant, but can't help noticing: yourremoveRows
and its call tobeginRemoveRows()
correctly allows for multiple rows, but your call toresponse = model->removeRow(first, QModelIndex());
only allows for one row. That's works for yourdel_row()
, but not in general. I don't suppose fixing that changes behaviour?
1/2