Hello,
I Would like to show only ““vtkMRMLMarkupsFiducialNode”” in my SubjectHierarchyTreeView widget.
I manage to hide the majority of node types thanks to this snipet
Folders are shown by default (even if they are empty), because otherwise you could not create new folders and drag-and-drop nodes into them. In recent Slicer Preview Releases you can control visibility of empty folders.
unfortunatly i have an error AttributeError: 'showEmptyHierarchyItems' does not exist on qMRMLSortFilterSubjectHierarchyProxyModel and creating new attributes on C++ objects is not allowed