有一大堆qwidget ,横向排列,如果超出了父widget的宽度就自动换行,在下一列继续放,如果widget特别多,有很多行,就出现滚动条
html css 的话就这样写的
<style>
.box{
width:800px;
height:600px;
overflow-y: auto;
}
.item{
float:left;
width:200px;
height:200px;
}
</style>
<div class='box'>
<div class='item'></div>
<div class='item'></div>
...........
</div>
用qt应该怎么弄,也就是说和qformlayout 布局方式差不多,但是不需要自动调节大小,并且带有滚动条