在Qt Designer中,我可以使用属性布局*保证金设置的VBox或HBox中的保证金。
我怎样才能做到这一点在PyQt的?
您可以使用QLayout.setContentsMargins:
# layout is a defined VBox or HBox layout.setContentsMargins(left, top, right, bottom)