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

Qt-interest Archive, May 2007
QTreeView: expanded items by default


Message 1 in thread

QTreeView seems to add new items in an unexpanded state when the model
changes. How can I get it to add new items in an expanded state, without
calling expandAll()?

The model view shouldn't have to know that the model is changing, so it's
really ugly to have to work out which nodes to expand initially, and breaks
MVC.

It would be nice to have a QTreeView where the user cannot expand/shrink
nodes, and they are open by default, but I can't see an easy way to do
this.

Thanks

Jeremy

-- 
 [ signature omitted ]