Do you really have to set them all at the same time?
Fill up only the portion from you tableWidget, it's visible on your monitor and then add more lines when the user scrolls up or down for example.
BTW: Have you tried QTableView instead. From what I know, it's much faster then QTableWidget.
Bookmarks