How do i resize the contents of a QScrollArea as more widgets are placed inside

前端 未结 3 1186
悲哀的现实
悲哀的现实 2020-12-05 13:58

I have a QScrollArea Widget, which starts empty;

\"empty

It has a vertical layout, with a

3条回答
  •  误落风尘
    2020-12-05 14:20

    The documentation provide an answer :

    widgetResizable : bool
    This property holds whether the scroll area should resize the view widget. If this property is set to false (the default), the scroll area honors the size of its widget.

    Set it to true.

提交回复
热议问题