Question

The task is to display a big dataset (with constant real-time update) in Qt application. Say, up to 100'000 rows with about 20 fields in each row.

Using ListView with such amount of items obviously leads to very slow scrolling and so on. In C#/WPF I could use so called "virtualization", when list displays only visible items. Is there in Qt any analogs of list controls with virtualization? Or maybe there are some other better ways to reach to goal in Qt, isn't there?

Was it helpful?

Solution

The problem here is QListView, it has some bug and it doesn't recycle items (it creates all items even those outside of visible area) and this kills performance.
Replace it with QTableView should fix the problem. You can tweak it to make it visually similar to the list.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top