QSplitter 设置比例

  1. splitter->setStretchFactor(0, 3); // widget gets 3 out of 4 width/height units

  2. splitter->setStretchFactor(1, 1); // widget gets 1 out of 4 width/height units

posted on 2011-07-14 17:10  katago  阅读(4550)  评论(0编辑  收藏  举报