PDA

View Full Version : QListWidget resize performance issues



Talei
17th July 2010, 06:59
Hello.
I want to ask for different approach to solve performance issues with QListWidget.
I develop an application that will show in list items that contains 4 elements: QPixmap, some QLable's, QPushButton and QProgressBar. I build Widget as separate form and then added it to the QListWIdget.
At this points everything works as I expected, but...
I placed QListWidget on my main form with contains other widgets and QSplitter. Problem is that when I move QSplitter CPU usage rise to 100%.

I tried to remove items from my QWidget that holds QProgressBar etc.. without any significant difference, also setting update to false don't help.

I know that I could achieve the same result using QItemDelegates or do the trick with painting QListWIdget into QPixmap on resize (first hiding QListWIdget) but before I start messing around with the code I would like to ask for Your opinion about this issue.

Any advices are more then welcome.
Best regards.