If I put Sliders in the “new style” LineLayouts (i.e. HLayout or VLayout), the occupy all the space available hinted by stretch, e.g.
w = Window.new.front;
(w.layout = HLayout(
[Slider().orientation_(\vertical).knobColor_(Color.green(0.75)), s:1],
[Slider().orientation_(\vertical).knobColor_(Color.green(0.75)), s:1]))
shows something like
But with RangeSliders that space filing doesn’t work
w = Window.new.front;
(w.layout = HLayout(
[a = RangeSlider().orientation_(\vertical).knobColor_(Color.green(0.75)), s:1],
// passing bounds has no effect here
[b = RangeSlider(bounds:Rect(0, 0, 60, 100)).orientation_(\vertical).knobColor_(Color.green(0.75)), s:1]))
I have used EZRangeSliders before and for those you can set their bounds properly as you construct them but they are a pain to integrate in “new style” Qt layout s (i.e. not using FlowLayout decorator.)
So, is there a workaround for making “plain” RangeSliders fill the space properly in LineLayouts?