here is rowcount():
int EmployeesTableModel::rowCount(const QModelIndex &parent ) const {
return _employees->size();
}
columncount() returns 3.
Are you talking about QAbstractItemModel::rowsInserted(), QAbstractItemModel::rowsRemoved() and QAbstractItemModel::dataChanged() signals? Should i really emit these signals, even if i don't change data directly in model? Model contains only pointer to data, which is changed in other dialog. All changed data appears on the view, only number of rows is constant.
Bookmarks