I've been using QtCreator for some time, but I have to admit, I really don't understand all the parameters that can be used in a layout.

For example, I have a vertical layout with three QFrames.

The Qframes have vertical stretch and horizontal stretch policies. But the layout also has a layoutStretch property, which is a list (I think) of the vertical stretch properties for each widget it contains.

Are these the same thing? Which one takes precedent (they aren't kept in sync).

Also, it seems sometimes widgets inside a layout overlap each other. I didn't think that was supposed to happen. Or, maybe it's a widget contained by the QFrame that goes outside its frame Either way, stuff definitely overlaps. What are the rules for this?