Adding scroll bar to a Qwidget

2019-07-25 14:44发布

I want to add scroll bars to the frame container. the QscrollArea can only take on widget but in my frame I need many wigets

I tried to write a code for the bars after adding a horizantal and vertical one but It's too hard.Is there any pre-made free code I could use ?

thank you

1条回答
可以哭但决不认输i
2楼-- · 2019-07-25 15:19

QScrollArea can take any number of widgets - indirectly. The widget() can contain any number of child widgets, it can have a layout set, etc. See e.g. this answer.

查看更多
登录 后发表回答