The data has to be shown in QTableWidget from a loop as soon as the loop variable is updated, where the loop is like:
QTableWidget
self.tableWidget.setRowCount(le