Hacker News new | ask | show | jobs
by felipefar 836 days ago
It's curious that in Qt Widgets QWidgets (that are generally "alien windows") aren't cheap either. If you implement a list view from scratch, you shouldn't create the list items as QWidgets otherwise your application will become slow very quickly.

What you want to do instead is to use custom drawing and event handling code for those list items. The it will be very snappy.

1 comments

You can take advantage of QListView to handle high item count lists and it'll just request the data it needs when it needs it, scales to millions of rows without issue, you really don't want to draw it yourself.