Qt Scroll Area does not add in scroll bars

前端 未结 2 949
-上瘾入骨i
-上瘾入骨i 2021-01-23 08:36

Hi guys I have to dynamically create push buttons depending on user inputs, therefore if user gives a large input number the widget containing the push buttons has to have the a

2条回答
  •  醉话见心
    2021-01-23 09:31

    Try playing around with the QScrollBarPolicy.

    http://doc.qt.digia.com/qt/qabstractscrollarea.html#horizontalScrollBarPolicy-prop

    I'm guessing that the default behavior isn't working because there is something strange going on with layouts.

提交回复
热议问题