The problem is as follows -- I have one QCustomPlot from the left side and GridLayout from the right, they are separated by splitter. Undesired effect is that grid layout is getting stretched to the maximum. I would like to prevent that. Need to have QCustomPlot stretched instead. I think I have tried everything (e.g. horizontal size policy Minimum for the grid, Maximum for the plot), also been reading similar posts here, but no solution. Would be grateful if someone can help or give an advice.