- 链接地址:https://blog.csdn.net/xj626852095/article/details/10374659#comments_22315087
- 链接标题:QT 布局时使用 addStretch 可伸缩设置-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1256
文章浏览阅读7.6k次。今天在使用addStretch,布局的时候,发现addStretch竟然是可以平均分配的,有意思。比如:QVBoxLayout *buttonLayout = new QVBoxLayout; buttonLayout->addStretch(1); buttonLayout->addWidget(Button1); buttonLayout->addStretch(1)
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除