in the model with parent being the QModelIndex of the parent items and count being the amount of child items to add:
beginRemoveRows(parent, 0, rowCount(parent));
//remove from data
endRemoveRows();
beginInsertRows(parent, 0, count);
//add rows into data
endInsertRows();