QBoxLayout::addStretch 参数如何设置
大家好,我想在我的Qt程序中增加一个拉伸的space,用到了,QBoxLayout::addStretch这个方法,可是不明白里面的参数是怎样设置的,
拉伸的长短如何确定呢,是根据像素来做的,还是什么,如果我想固定让space占用 20个像素,应该如何设置呢,谢谢!
Qt的F1帮助是这样说的:Adds a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end of this box layout.