You don't want to make it visible. You want to set rootIsDecorated property to false.
You don't want to make it visible. You want to set rootIsDecorated property to false.
Johannes (22nd February 2011)
My primary intention was to display the root item, but your suggestion to try the property rootIsDecorated lead also to a good looking result.
I tried it and now my topLevelItems are childs and my new topLevelItem looks like a root item. Thanks!![]()
You can't display the invisibleRootItem because it is a fake item used only to have an equivalent of empty QModelIndex.
Johannes (22nd February 2011)
That's a good reason. Thanks for the explanation.
Bookmarks