It is best to try yourself in such a situation. It took no more than two minutes to create a new application with one window and several controls. You don’t need to add any code at all if you just want to play with resizable:
There is no minimum size and restrictions in this window, and the problem is immediately obvious. You can resize the window to look like this:
Adding some constraints between the buttons shows a promise that the constraints provide. Now this window looks at least:
A few more restrictions on the label finally gave the desired result:
This is great, but it took a bit of work. I did not add a full set of restrictions - a vertical restriction between two buttons of the right hand would be unnecessary, since there is already one between the buttons on the left. For a window with many controls, it’s enough to set limits to cover all kinds: a) very useful and useful, or b) pain in the butt and a little extra value. It depends on your situation. The simplest scheme is to simply add the heights of the controls that may overlap (two buttons and a label) and the required spaces between them, and then set this as the minimum height for the window.
I see that any strategy is useful, depending on the contents of the window. Actually, I don’t think that they are really two different strategies ... setting minimum window sizes is just another kind of constraint that you add. For example, there may be a size below which your window looks just silly or not very useful, so you can set a minimum window size for these sizes. At the same time, you can set restrictions between buttons to prevent controls from overlapping in localized versions (for example, German names tend to get quite long).
source share