I have a bunch of
QCPAxisRect inside plot layout that are arranged vertically. Now, I want them all to be of a fixed height and hence call
setMaximumSize on them. However, the actual height is always less than the minimum height set.
In short the things I want are:
1. Ability to show/hide a particular axis rect in the layout and other's should move up/down accordingly. Right now, this does not happen, I get empty space when I hide an axis rect. So instead of hiding the graph, I take it out of the layout and put it back in when un-hidden.
2. However, doing this, the heights of the graphs change. But the requirement is fixed height graphs. As I hide (i.e. remove from layout) graphs, the height increases, and showing (i.e. adding back to layout) them back, the height of all decreases despite setting the minimumSize and maximumSize. (They are not being honored).
How to solve this issue?