QT | 一些学习心得

1. 如何使控件随着窗口大小变化而自动填充?

选中控件中最外层的那个控件,如centralWidget(不要去选中内部的小控件,这样能够保证内部的相对位置)

然后对centralWidget选择布局方式为“栅格布局”(Grid Layout)即可

 

参考:http://blog.sina.com.cn/s/blog_c2f250bd0101glbm.html

posted on 2018-03-13 09:24  Oliver-cs  阅读(1010)  评论(0编辑  收藏  举报

导航