Qt 4.2 introduced QTreeView::expandAll(). Ain't that neat? And the feature reject mentions it BTW...