I'm trying to get a QDialog subclass to open at a default size but be resizable smaller.
When I implement sizeHint() to return e.g. QSize(400, 300), the dialog opens at the correct size but then can't be resized smaller, only larger.
If I remove the sizeHint method the dialog opens at the smallest possible size (50, 50) and can be resized no problem.
I tried also implementing minimumSizeHint to return (50, 50) but no effect.

Any ideas?

Thanks