# Configure qMRMLSubjectHierarchyTreeView?

**URL:** <https://discourse.slicer.org/t/configure-qmrmlsubjecthierarchytreeview/45241>\
**Category:** Support\
**Created:** [November 26, 2025, 4:45pm UTC](https://discourse.slicer.org/t/configure-qmrmlsubjecthierarchytreeview/45241 "2025-11-26T16:45:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [November 26, 2025, 4:45pm UTC](https://discourse.slicer.org/t/configure-qmrmlsubjecthierarchytreeview/45241/1 "2025-11-26T16:45:39Z")

</div>

Hi,

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

Thank you

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [December 1, 2025, 9:42am UTC](https://discourse.slicer.org/t/configure-qmrmlsubjecthierarchytreeview/45241/2 "2025-12-01T09:42:43Z")

</div>

> 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](https://github.com/Slicer/Slicer/blob/main/Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyTreeView.h#L96)
