首页 > Windows开发 > 详细

Qt窗体内控件自适应调整大小

时间:2016-03-14 16:32:54      阅读:1204      评论:0      收藏:0      [点我收藏+]

http://stackoverflow.com/questions/3492739/auto-expanding-layout-with-qt-designer

After creating your QVBoxLayout in Qt Designer, right-click on the background of your widget/dialog/window (not the QVBoxLayout, but the parent widget) and

select Lay Out -> Lay Out in a Grid from the bottom of the context-menu. The QVBoxLayout should now stretch to fit the window and will resize automatically when the entire window is resized.

右击窗体->布局->栅格布局

 

Qt窗体内控件自适应调整大小

原文:http://www.cnblogs.com/wucg/p/5276089.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!