Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, May 2007
Problem with hiding items in QTreeWidget


Message 1 in thread

I have an application I've converted from using QListView to QTreeWidget, it displays a tree of package files which can have 10,000 or 20,000 entries. I've found that he performace when hiding entries is much worse with QTreeWidget than QListView.

I use a search line with the QTreeWidget (KTreeWidgetSearchLine) which hides QTreeWidget items which don't match the entered string using setHidden() and it is unusably slow, with  QListView the performanc was fine.

I've tried wrapping setUpdatesEnabled(false) around it but it doesn't help.

--
 [ signature omitted ]