Note, this is not the same as this question, which regards spacers and buttons being too large for their containing layout while resizing.
Instead, I want to set a fixed size to one of the direct children of a HLayout, to make it a non-resizing pane. I read here that I should rather control the size of the contained widgets, but that would be rather cumbersome, given the hierarchy of the pane that I want at constant width.
I am trying to create a window design, that features:
I have tried multiple combinations of Layouts, Frames, Widgets, to no av. This is what I have now:
As expected, the plot_layout
does not show in the preview, since there is no widget within. Fine.
Here is what happens when I resize the application window. Reasonable:
Wide controls, instead of wide plot, not so reasonable:
I suspect that this partially has to do with how I create the plot (it's a matplotlib plot, I use FigureCanvasQTAgg
and add it plot_layout
as a widget). But even so, I would like to fix the whole left pane's width, no matter the figure size.