I have a derived QDialog dialog layed out the way I want, and resizing the way I want, with the problem that the preview starts out resized to a larger size than it should. In designer, the window is shrunk to the smallest size possible given the policies and hints of everything contained, but in preview (and in real code I then assume) it grows larger than I want. I can then resize it down to its minimum size the way it looks in designer, but I'm wondering where the extra space is coming from. Here're some pictures to illustrate, if that's not enough I can post the ui file or anything else.
Default preview size
Minimum preview size after resizing