In Qt Designer I can set the margin of a VBox or HBox using the properties layout*Margin.
How can I do that in pyqt?
In Qt Designer I can set the margin of a VBox or HBox using the properties layout*Margin.
How can I do that in pyqt?
You can use QLayout.setContentsMargins:
# layout is a defined VBox or HBox
layout.setContentsMargins(left, top, right, bottom)