On Ubuntu 20.04 if I try to apply Qt stylesheet (for example using SandBox style tester with these two default lines) and switch after that I switch to the Transform module and then switch to any other module I get segmentation fault. This makes Qt stylesheets unusable.
Does this happen only on Ubuntu?
I haven’t figured out why this happens only with Transform module but it seems that something related to applying style during qSlicerModulePanel::removeModule:
We should definitely understand the issue and address the problem.
To help move forward with this, could you:
share a small standalone example allowing to reproduce the problem. It could be as simple as a list of steps to follow, and few lines that need to be copied into the python interactor
after the restart go to the Modules->Developer Tools->StyleTester and click on Apply to Slicer radiobutton and then click Apply Style pushbutton;
go to the Modules->Transforms (should be fine);
go to any other module (for example Modules->Data) or click Previous modules tool button (here I get segfault)
This can be reproduced on Ubuntu 20.04 with Slicer downloaded from official web-site v4.13.0 built 2022-02-03 or with Slicer manually built with Qt 5.15.2 with GCC 9.3