I've seen how to adjust the space between widgets in a layout: Space between widgets in QVBoxLayout. However, I want to know how to adjust space between layouts added to a layout.
For example:
layout = QVBoxLayout()
h1_layout = QHBoxLayout()
h2_layout = QHBoxLayout()
layout.addLayout(h1_layout)
layout.addLayout(h2_layout)
I would like the contents of h1_layout
and h2_layout
to be placed close to each other rather than spaced across the vertical layout.