2012/12/24

[自分メモ] Qt DesignerでWidget/Layoutをウインドウサイズにあわせて伸縮

まず、伸縮させたいWidgetのSizePolicyをExpandingにする。

その後に、centralWidget(QMainWindow直下のWidget)の領域で
右クリック → レイアウト → 水平に並べる or 垂直に並べる or Gridに並べるを
選ぶとcentralWidget直下のWidget/Layout達が整列される。

Expandingにするだけじゃダメだった・・。

参考サイト
http://stackoverflow.com/questions/3492739/auto-expanding-layout-with-qt-designer

0 件のコメント: