Qt随记

1. 让布局不随窗口的缩放而变化
   QWidget *panelWidget=new QWidget(this);
   panelWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);//this sentence is useful
   panelWidget->setLayout(hlayout_below);

posted on 2013-08-19 22:18  veins  阅读(160)  评论(0编辑  收藏  举报

导航