# Qt5 build : a few hiccups

**URL:** <https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952>\
**Category:** Development\
**Tags:** build, qt\
**Created:** [August 26, 2017, 11:26am UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952 "2017-08-26T11:26:06Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [January 17, 2018, 10:05am UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/21 "2018-01-17T10:05:42Z")

</div>

> [@Davide\_Punzo](#):
>
> Sorry, but I didn’t understand this other one:

![Screenshot_20180117_105350](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/2/621b81a378e7cb7d41819032327167ba0e5bebc4.png)

In ‘Filtering/Threshold scalar volume’ module : If ‘Threshold Type’ is set to ‘Below’, Slicer crashes when the ‘Apply’ button is clicked.

---

<div class="post-metadata">

**Author:** ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)\
**Post date:** [January 17, 2018, 10:47am UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/22 "2018-01-17T10:47:36Z")

</div>

ah ok, I thought you meant the threshold segmentation editor effect. At the moment I don’t have the filters in my build so I can’t check/fix.

asap I’ll try to fix the other one:

> [@Davide\_Punzo](#):
>
> Slicer will crash on application exit if the ‘Standard Quantitative’ pane has been shown, whether it is shown or not on exit. Using Qt5/VTK9 build on Linux.

It will also be nice to report all these in an ordered manner in the mantis bug tracker

> **[Issues · Slicer/Slicer](https://github.com/Slicer/Slicer/issues)**
>
> Multi-platform, free open source software for visualization and image computing. - Issues · Slicer/Slicer

---

<div class="post-metadata">

**Author:** ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)\
**Post date:** [January 17, 2018, 11:09am UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/23 "2018-01-17T11:09:03Z")

</div>

reported in:  
[https://issues.slicer.org/view.php?id=4494](https://issues.slicer.org/view.php?id=4494)  
[https://issues.slicer.org/view.php?id=4493](https://issues.slicer.org/view.php?id=4493)  
[https://issues.slicer.org/view.php?id=4492](https://issues.slicer.org/view.php?id=4492)  
[https://issues.slicer.org/view.php?id=4495](https://issues.slicer.org/view.php?id=4495)

and for reference:

> **[ProjectWeek](https://na-mic.github.io/ProjectWeek/PW27_2018_Boston/Projects/Qt5Integration/)**
>
> Website for NA-MIC Project Weeks

  
[https://issues.slicer.org/view\_all\_bug\_page.php](https://issues.slicer.org/view_all_bug_page.php)

---

<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:** [January 17, 2018, 9:19pm UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/24 "2018-01-17T21:19:31Z")

</div>

I’ve noticed that with the new OpenGL2 backend/VTK9/Qt5, slice browsing speed can be much slower: it is always at least 20% slower than using OpenGL backend/VTK7.1/Qt4, but sometimes it is 5-10FPS instead of the normal 50FPS. It seems to be related to how many synchronous OpenGL calls are used and if NVidia threaded optimization is enabled. I’ve added a ticket to track this issue: [https://issues.slicer.org/view.php?id=4496](https://issues.slicer.org/view.php?id=4496).

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [January 18, 2018, 1:41pm UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/26 "2018-01-18T13:41:21Z")

</div>

> [@chir.set](#):
>
> In ‘Filtering/Threshold scalar volume’ module : If ‘Threshold Type’ is set to ‘Below’, Slicer crashes when the ‘Apply’ button is clicked.

I could not reproduce it in the 20180116 build where there are no errors.  
A build from 20180107 gives the following errors with all default values :

> Threshold Scalar Volume standard error:
> 
> PARSE ERROR: Argument: (–thresholdtype)  
> Value ‘&Below’ does not meet constraint: Below|Above|Outside
> 
> Brief USAGE:
> 
> For complete USAGE and HELP type:  
> /home/user/programs/Slicer-4.9.0-2018-01-07-linux-amd64/lib/Slicer-4.9/cli-modules/ThresholdScalarVolume --help

I probably noticed that in an older build and its has since been fixed by the many recent changes.

---

<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:** [January 18, 2018, 2:22pm UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/27 "2018-01-18T14:22:39Z")

</div>

This seems to be the same bug as the extra **_&_** characters appearing in the GUI, which is most likely caused by this [extremely ugly KDE bug](https://bugs.kde.org/show_bug.cgi?id=337491) (which is intended to be a feature and it seems it has not been removed yet). In the bug report there are many links to duplicate reports, with lots of additional information.

Probably the same bug causes the duplication of tools in the toolbar.

---

<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:** [January 18, 2018, 4:04pm UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/28 "2018-01-18T16:04:06Z")

</div>

I’ve implemented a [fix](https://github.com/Slicer/Slicer/commit/cea9dcfd94bc1b670126c60a06a6950e5ead1c01) for [Threshold volume](https://issues.slicer.org/view.php?id=4493) and [duplicated mouse mode icons](https://issues.slicer.org/view.php?id=4495) issues. The fixes do not address the issue of KDE altering text in the application, just changes Slicer to not rely on exact GUI text match in these specific cases. The KDE bug may cause other issues, so we should keep in mind that it is always a possible root cause for errors.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [January 24, 2018, 12:05am UTC](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952/29 "2018-01-24T00:05:18Z")

</div>

Split this topic on January 24, 2018, 12:05am UTC

2 posts were split to a new topic: [Support --designer launcher argument for Qt5 build](https://discourse.slicer.org/t/support-designer-launcher-argument-for-qt5-build/1917)

[Previous page](https://discourse.slicer.org/t/qt5-build-a-few-hiccups/952.md?page=1)
