冲击年薪50W,助你进阶Python工程师>>> layoutstretch属性配置控件按比例扩大缩小。 把horizontalLayout中的layoutstretch属性设置为1,2,意思是指horizontalLayout里面的两个控件按1:2的宽度显示。