You are not logged in.

1

Saturday, October 16th 2010, 7:03am

layout widget to grow vertically, and stay fixed horizontally

I want to set the widget's width to be 300px, and its height to be a minimum of 250px. But this widget can grow in a vertical direction. I know I am supposed to do something with QWidget.setSizePolicy(), but I don't know what. Hope to find some advice here.

Ps: doing my code in pyqt, but I can live with examples from any other programming language.