Model View
-
Hi, I need to write an app which shows a lot of items at the same time some items update and undefined quantity new items come over the network. The list of items persistently grows.
I wrote a Model inherited of QAbstractItemModel, and the some time it works well, but after a while the app starts to slow down.
Do you know a decision how to fix it? Thanks. -
@EugeneT said in Model View:
Do you know a decision how to fix it?
I would say - fix your model or don't add more than maybe 100k items to it.
-
You can try to implement fetchMore() for your model, so only the data that you want to see gets loaded dynamically.
-
@Christian-Ehrlicher , hello. I thought that Qt doesn't use or handle items which aren't visible, and it doesn't matter how many items you insert into a view. Approximately 100k items and the app is slow