[Qt-interest] QtreeWidget::addTopLevelItem() very slow method

Roland Tollenaar rwatollenaar at gmail.com
Mon Jul 12 11:00:49 CEST 2010


Hi,

It always strikes met that adding an item to a treewidget, even if the 
item already exists, is a very slow operation.

Is there anyone who knows the technical reason for this and consequently 
whether (perhaps at the cost of some concession) this performance can be 
improved.

PS the slowness is not directly noticable for small datasets but at 1000 
or more items to be added the issue becomes clearly evident.

Kind regards,

Roland



More information about the Qt-interest-old mailing list