Configure qMRMLSubjectHierarchyTreeView?

Hi,

Is it possible to hide all empty folders and markupNodes with no control points from a qMRMLSubjectHierarchyTreeView ?

Thank you

Is it possible to hide all empty folders

You can use the showEmptyHierarchyItems property in the proxy model.

markupNodes with no control points

I’d probably change the default markup node to have a certain attribute, and then when a control point is added, remove that attribute (or change the value). Use it in conjunction with excludeNodeAttributeNamesFilter

1 Like