|
qt启动报错:ASSERT: "last < rowCount(parent)" in file itemmodels\qabstractitemmodel.cpp, line 2815
void NavModel::refreshList(){ beginRemoveRows(QModelIndex(),0,listNode.count()); listNode.clear(); endRemoveRows();
修改为:void NavModel::refreshList(){ beginRemoveRows(QModelIndex(),0,listNode.count()-1); listNode.clear(); endRemoveRows(); |
|