I wanted to have the subject hierarchy as part of my custom extension.
To do this, I added the
qMRMLSubjectHierarchyTreeView to my .ui file.
It now appears in my custom extension but it is empty (a scene is loaded and in the data module the tree is there):
What do I have to do to make all the folders, volumes etc appear here?