QModelIndex topLevelIdx;
for(int i = 0; i < model()->rowCount(rootIndex()); i++) {
topLevelIdx = model()->index(i, 0, rootIndex());
QModelIndex topLevelIdx;
for(int i = 0; i < model()->rowCount(rootIndex()); i++) {
topLevelIdx = model()->index(i, 0, rootIndex());