was*_*tor 5 layout qt pyqt qt-designer
在Qt Designer中,我可以使用属性layout*Margin设置VBox或HBox的边距.
我怎么能在pyqt中做到这一点?
was*_*tor 14
您可以使用QLayout.setContentsMargins:
# layout is a defined VBox or HBox
layout.setContentsMargins(left, top, right, bottom)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10636 次 |
| 最近记录: |