Hi everyone,
I am trying to implement a custom layout very similar to SlicerLayoutFourUpQuantitativeView.
However, I would like to set a minimum width/height to views so that when the user stretches one views others do not disappear.
Is there already something existing to do that ?
The proper solution would be to add attributes for this in CTK (in ctkLayoutManager). But if you have never used C++ then you can work around this in Python by looking up the widget using slicer.util.findChildren and adjusting sizing properties.
Thanks Andras,
Do you know if there is a way to fix the size at layout creation
I tried to use verticalStretch="0" horizontalStretch="0" but it was not working
There are no such properties implemented in ctkLayoutManager as verticalStretch and horizontalStretch. You can search for .attribute in the file to see what properties are available. You can modify this file to add support for more attributes.