Skip to content
Advertisement

How do I modify spacing in nested PyQt layouts?

Currently, I have a nested QVBoxLayout in the first column of a QHBoxLayout, but no matter my changes to .setContentMargins or .setSpacing nothing changes in that first column.

JavaScript

Leaves me with this result: Current result

What I want: enter image description here

Advertisement

Answer

Use addStretch() method:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement