Qt - How to control the widget sizes in QLayout

后端 未结 4 1005
名媛妹妹
名媛妹妹 2021-01-15 08:12

I am trying to put some spinboxes,line edits in a layout. But the size extends more than the neccesity. Below is the figure

4条回答
  •  甜味超标
    2021-01-15 08:51

    I think you should try with void setSizeConstraint ( SizeConstraint ) and minimumSize() inherited methods.

    Read the doc

提交回复
热议问题