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.