# Segment Editor widget is too tall

**URL:** <https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296>\
**Category:** Development\
**Tags:** build, segmentation, extensions-manager\
**Created:** [November 18, 2022, 8:07am UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296 "2022-11-18T08:07:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![FUFU](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@FUFU](https://discourse.slicer.org/u/FUFU)\
**Post date:** [November 18, 2022, 8:07am UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/1 "2022-11-18T08:07:11Z")

</div>

Hello! I’m new here but I also have a question about the viewing of the slices. My company has developed a plug-in. When running 3D-SLicer 4.8, the resulview looks like this. Everything is fine

 ![6cf9efc2854e4a0b7545ccba7e6ad83](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/4/44a9227efa2ec938b21bee70e3ae20048826b39a.jpeg)

But because slicer’s upgrade deleted the editor module and changed it into the segmentation module,The height of the SegmentEditor section is much larger than that of the previous editor, which makes the resultview section much smaller

 ![1564cca0e34a1b71bcf83e627af80bd](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/e/3ea5e5b1851afb112d0525521eb6ed135630c908.png)

This makes it difficult for the company’s annotator to use the resultview section.I wanted to change this by adjusting the code, but found that the size of the resultview widget is due to slicer’s window being scaled.And there is no api in qt.QTableView() that cannot resize a resultview

 ![1668758406149](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/0/b09b25657885c8e12e9460fbb7a07f3fcfb0c024.png)  
We need some ways to change the height of review. Thank you!!

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [November 18, 2022, 12:14pm UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/2 "2022-11-18T12:14:40Z")

</div>

You may want to consider putting the segment editor effect list to the left of the “result view” to be similar to how the segment editor effect List is positioned to the left of the segment table view.

Or you can set the effectColumnCount to be say 6 or whatever amount you would like instead of the default 2. See the examples provided in the commit message body at the link below:

> <https://github.com/Slicer/Slicer/commit/5a44b5e47650ea7b954dbfa52bb28da10cd19a32>
>
> Improve visual appearance of effect buttons by making all the same width.
> Make e…ffectColumnCount a property so it can be set in Qt Designer.
> 
> Examples of how to customize Segment Editor appearance:
> 
> editor = getModuleGui('SegmentEditor').editor
> 
> \# Text below (two-column)
> editor.effectButtonStyle = qt.Qt.ToolButtonTextUnderIcon
> editor.setEffectColumnCount(2)
> 
> \# Text below (three-column)
> editor.effectButtonStyle = qt.Qt.ToolButtonTextUnderIcon
> editor.setEffectColumnCount(3)
> findChild(editor,"EffectsGroupBox").setMaximumWidth(200)
> 
> \# Text beside
> editor.setEffectColumnCount(1)
> editor.effectButtonStyle = qt.Qt.ToolButtonTextBesideIcon

---

<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:** [November 19, 2022, 5:36pm UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/3 "2022-11-19T17:36:02Z")

</div>

You can also put the Segment Editor widget and the table in collapsible widgets. You can even put the widgets in a button group and make them exclusive, which means that when you open one it automatically collapses the other.

But probably it is much better to switch to a view layout that has a table view and display your table there.

---

<div class="post-metadata">

**Author:** ![FUFU](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@FUFU](https://discourse.slicer.org/u/FUFU)\
**Post date:** [November 28, 2022, 8:01am UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/5 "2022-11-28T08:01:44Z")

</div>

Thanks! But that table is very important to me, so I’d rather not fold it

---

<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:** [November 28, 2022, 2:05pm UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/6 "2022-11-28T14:05:54Z")

</div>

If you always want to see the table then I would recommend to switch to a view layout that has a table view and display your table there.

---

<div class="post-metadata">

**Author:** ![FUFU](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@FUFU](https://discourse.slicer.org/u/FUFU)\
**Post date:** [December 1, 2022, 1:41am UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/8 "2022-12-01T01:41:13Z")

</div>

If you have this problem, try using a few lines of my code.  
 ![1669858854962](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/8/684431fd2d4bea35d373868033766567f725699f.png)

---

<div class="post-metadata">

**Author:** ![FUFU](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@FUFU](https://discourse.slicer.org/u/FUFU)\
**Post date:** [December 1, 2022, 1:45am UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/9 "2022-12-01T01:45:07Z")

</div>

It to everyone. 😀 🥰 🥰

---

<div class="post-metadata">

**Author:** ![FUFU](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@FUFU](https://discourse.slicer.org/u/FUFU)\
**Post date:** [December 1, 2022, 3:08am UTC](https://discourse.slicer.org/t/segment-editor-widget-is-too-tall/26296/10 "2022-12-01T03:08:08Z")

</div>

![1669863997635](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/f/7f258bb87ab46ad4e5d2cce07710ba97454c55a2.png)  
Thank you for your very effective advice!!!
