Qt5.9布局管理器中的控件按照比例进行伸缩用法(函数setStretch)

1.1函数QHBoxLayout::setStretch(int index, int stretch),可以将水平布局添加的控件按照比例进行伸缩。比如在QHBoxLayout水平布局上添加了两个控件,当写如下语句时, //初始化 QHBoxLayout *m_VBoxLayout = new QHBoxLayout(this); QTreeView *m_TreeView
相关文章
相关标签/搜索