I have a QStandardItemModel and it contains my data which has around 5000 rows. I want to insert the data into QScrollArea in batches. If I insert it altogether the performance becomes really slow. Hence I want to add the data when it is required by the viewport in the QScrollArea. At first I have loaded the QScrollArea with 500 rows. When the user scrolls I want further data to be added to the viewport of the QScrollArea.
Does anyone have an idea on how to go about this ??