“A scroll area is used to display the contents of a child widget within a frame. If the widget exceeds the size of the frame, the view can provide scroll bars so that the entire area of the child widget can be viewed. ”
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
只有 要显示的部分>scollArea的时候 才会用到srollArea
本文介绍了滚动区域组件(scrollArea)的使用场景与功能。当子控件大小超过其父框架时,滚动区域能够提供滚动条以便查看整个子控件的内容。文章还探讨了如何设置水平滚动条策略。
5282

被折叠的 条评论
为什么被折叠?



