Have you tried using QTreeView::setRootIndex?