See this post: http://www.qtcentre.org/forum/f-qt-p...data-7575.html
You will have to modify that function(actually add something to it) and expand every item in the hierarchy that has children. Really easy to do. You just have to call setExpanded(true) for the item in question.
You can use that function and pass as parameter the tree item that you want to be expanded. This will cause the item itself along with all its children to be expanded.
Regards
Bookmarks