AFAIK, the layout's policies take precedence over the widgets inside it. The layout will try to honor the widgets' minimum size and size hints and size policy, but i suppose if you externally compress a layout by forcing it into a container smaller than the minimum sizes of the widgets in the layout, then the layout might have no choice except to overlap widgets.
On the other hand, if it is a custom widget doing its own drawing and that drawing doesn't respect the bounding rect imposed on it by the layout, it will color outside the lines and appear to be overlapping.
Stretch in layouts is a mystery. I have not found anywhere in the documentation that describes how stretch actually behaves other than cryptic things likeWell, duh, but what does that mean? The closest I have come to understanding it is that if you have two panes in a layout, one with stretch factor 1 and the other with stretch factor 2, the second seems to stretch at twice the rate of the first. Sometimes. Until you add a third or fourth pane.Sets the stretch factor at position index. to stretch.
Bookmarks