# qMRMLSubjectHeirarchyTreeView customization

**URL:** <https://discourse.slicer.org/t/qmrmlsubjectheirarchytreeview-customization/24619>\
**Category:** Development\
**Created:** [August 3, 2022, 2:17pm UTC](https://discourse.slicer.org/t/qmrmlsubjectheirarchytreeview-customization/24619 "2022-08-03T14:17:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![priya.vada4](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@priya.vada4](https://discourse.slicer.org/u/priya.vada4)\
**Post date:** [August 3, 2022, 2:17pm UTC](https://discourse.slicer.org/t/qmrmlsubjectheirarchytreeview-customization/24619/1 "2022-08-03T14:17:23Z")

</div>

Hi

I am interested in using the qMRMLSubjectHeirarchyTree widget as part of my module to list the mrmlmodelnodes in the scene with the inbuilt features of enabling visibility and changing color. Would it be possible to add a custom field to this widget to display the results of certain computations specific for each model programmatically.

I see that there is a “Description” field as part of the widget. I am able to modify the contents of the Description column for each model through the GUI. Could someone let me know how I could change this field programmatically to display the results of the computation for each model listed in the tree.

Thanks  
Priya

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [August 3, 2022, 3:48pm UTC](https://discourse.slicer.org/t/qmrmlsubjectheirarchytreeview-customization/24619/2 "2022-08-03T15:48:39Z")

</div>

You could try modifying the underlying model to add additional columns to the view. I’m not sure how well it would work with the qMRMLSubjectHierarchyModel.

The value in the description column can be changed with:

```auto
node.SetDescription("XYZ")

```
