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:
Qt Code:
  1. |
  2. [-]TopLevelItem1
  3. | |
  4. | -Child1
  5. | |
  6. | -Child2
  7. |
  8. [-]TopLevelItem2
  9. |
  10. -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:
Qt Code:
  1. RootItem
  2. |
  3. [-]TopLevelItem1
  4. | |
  5. | -Child1
  6. | |
  7. | -Child2
  8. |
  9. [-]TopLevelItem2
  10. |
  11. -Child3
To copy to clipboard, switch view to plain text mode