with open('data') as input:
    for line in input:
        entries.append(line.strip().split('\t'))
tableWidget.setRowCount(len(entries))
tableWidget.setColumnCount(len(entries[0]))
for i, row in enumerate(entries):
    for j, col in enumerate(row):
        pass
Python - PyQt - QTable Widget - adding rows