Hi,

I have a QTreeView with custom Read-only TreeModel derived from QAbstractItemModel. On click of a TreeItem, I have to call the backend layer to get the data and add the response to the parent TreeItem.

Data coming from backend is divided into chunks(say 100 objects at a time which is pushed to the model, then 100 objects pushed to the model, so on). View is getting updated as and when model is getting updated by using BeginInsertRows()/EndInsertRows().

My problem here is, When there are 10k data items coming in response which keeps on adding to model in chunks , the Treeview becomes unresponsive till the entire data gets added. I am not able to use scrollbar, click on any other TreeItem. Is there any way in Qt to make the data addition to the model/view without affecting other GUI controls?