# How to get a vertical side bar in QT designer view for Slicer

**URL:** <https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558>\
**Category:** Development\
**Created:** [September 25, 2019, 10:15am UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558 "2019-09-25T10:15:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saima](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Saima](https://discourse.slicer.org/u/Saima)\
**Post date:** [September 25, 2019, 10:15am UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558/1 "2019-09-25T10:15:33Z")

</div>

How to get the vertical scroll bar in the designers view for slicer.

Regards,  
Saima Safdar

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 26, 2019, 1:01am UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558/2 "2019-09-26T01:01:19Z")

</div>

Scroll bar is added automatically in the scripted module GUI widget area. You can also enable it for certain widgets (e.g., tables, lists). You may also add a QScrollArea to your GUI. These are all purely Qt features, so you can google for more details and examples.

---

<div class="post-metadata">

**Author:** ![Saima](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Saima](https://discourse.slicer.org/u/Saima)\
**Post date:** [September 28, 2019, 7:45am UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558/3 "2019-09-28T07:45:47Z")

</div>

Hi andras,  
I need to add widgets like from segmenteditor I need to add scissors and maskvolume. Is it posssible to add it in your own scripted modules.

Regards,  
Saima Safdar

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 28, 2019, 12:25pm UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558/4 "2019-09-28T12:25:25Z")

</div>

Yes, you can add Segment Editor widget to your module GUI and configure which effects and parts of the widget you want to show. See the Segment Editor module source code for an example.

---

<div class="post-metadata">

**Author:** ![Saima](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Saima](https://discourse.slicer.org/u/Saima)\
**Post date:** [October 4, 2019, 2:41am UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558/5 "2019-10-04T02:41:17Z")

</div>

> [@lassoan](#):
>
> get you want to show. See the Segment Editor module source code for an example.

Hi Andras,  
I followed what you said. I added the following in the scripted module

self.ui.sEditor.setMRMLScene(slicer.mrmlScene)

```
segmentEditorSingletonTag = "SegmentEditor"
segmentEditorNode = slicer.mrmlScene.GetSingletonNode(segmentEditorSingletonTag, "vtkMRMLSegmentEditorNode")
if segmentEditorNode is None:
  segmentEditorNode = slicer.vtkMRMLSegmentEditorNode()
  segmentEditorNode.SetSingletonTag(segmentEditorSingletonTag)
  segmentEditorNode = slicer.mrmlScene.AddNode(segmentEditorNode)

self.parameterSetNode = segmentEditorNode
self.ui.sEditor.setMRMLSegmentEditorNode(self.parameterSetNode)

```

How can I only add the effects I need. Also how can I get the results of segment editor. Example how can I see the segmented volume in other volume inputs of other module

Regards.  
Saima Safdar

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 4, 2019, 4:39am UTC](https://discourse.slicer.org/t/how-to-get-a-vertical-side-bar-in-qt-designer-view-for-slicer/8558/6 "2019-10-04T04:39:51Z")

</div>

> [@Saima](#):
>
> How can I only add the effects I need.

You can use [setEffectNameOrder](https://apidocs.slicer.org/master/classqMRMLSegmentEditorWidget.html#ac28caab505058e98b850f73044c82ee8) and [setUnorderedEffectsVisible](https://apidocs.slicer.org/master/classqMRMLSegmentEditorWidget.html#a7af0c74206f9045a071743d5724ff3a9) methods of the segment editor widget.

> [@Saima](#):
>
> how can I see the segmented volume in other volume inputs of other module

You can use masterVolumeNode/setMasterVolumeNode and segmentationNode/setSegmentationNode methods of the segment editor widget.
