문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top