layoutstretch使用
例如:
对一个horizontalLayout(横向布局)中的两个QTextEdit控件按2:3的比例扩大,把horizontalLayout中的layoutstretch属性设置为2,3即可,同理如果horizontalLayout里面放了三个控件,layoutstretch里面的初始值为0,0,0,意思是三个控件的比例是1:1:1
layoutstretch使用
例如:
对一个horizontalLayout(横向布局)中的两个QTextEdit控件按2:3的比例扩大,把horizontalLayout中的layoutstretch属性设置为2,3即可,同理如果horizontalLayout里面放了三个控件,layoutstretch里面的初始值为0,0,0,意思是三个控件的比例是1:1:1
本文标题:qt designer布局笔记
本文链接:https://www.haomeiwen.com/subject/boibdqtx.html
网友评论