PDA

View Full Version : Need help with QListWidget



mister_wang
5th May 2015, 20:39
Hi,
I ran into a problem with using QListWidget::setItemWidget(). Its so slowwwww.
For example I have QLabel as widget.
setItemWidget(some_item,some_label) x7000 this operation takes 6-7 minutes and 120 mb RAM.
Is there some easier and light weight method to have List of HTML (support) lines?
Or I should implement it my self using paint event?

rawfool
6th May 2015, 03:53
You may use QListView

wysota
6th May 2015, 06:38
Hi,
I ran into a problem with using QListWidget::setItemWidget(). Its so slowwwww.
For example I have QLabel as widget.
setItemWidget(some_item,some_label) x7000 this operation takes 6-7 minutes and 120 mb RAM.
Is there some easier and light weight method to have List of HTML (support) lines?
Or I should implement it my self using paint event?

You should use a proper delegate instead of setItemWidget().