Hello.
I'm building a Qt application with a QTreeWidget. I've got several TopLevelItems each with some childs. But all the Items are "hanging" on the top end of the QTreeWidget like this:
|
[-]TopLevelItem1
| |
| -Child1
| |
| -Child2
|
[-]TopLevelItem2
|
-Child3
|
[-]TopLevelItem1
| |
| -Child1
| |
| -Child2
|
[-]TopLevelItem2
|
-Child3
To copy to clipboard, switch view to plain text mode
I read in the documentation that there is a "invisibleRootItem", but I got no success to make it visible.
How can I display the root item?
I wanted to have a tree like this:
RootItem
|
[-]TopLevelItem1
| |
| -Child1
| |
| -Child2
|
[-]TopLevelItem2
|
-Child3
RootItem
|
[-]TopLevelItem1
| |
| -Child1
| |
| -Child2
|
[-]TopLevelItem2
|
-Child3
To copy to clipboard, switch view to plain text mode
Bookmarks