Create a QWizard object, set the style to ModernStyle, and set a watermark (say the height of the picture is 500px).
Add a page inside the QWizard whose sizeHint height is high (say 700px), but its minimumHeight is low (say 300px).
Expected to see:
The wizard height should be adjusted to the height of the watermark so that the watermark fits extacly in it's reserved space.
The QWizard window height is higher than the size required for the watermark.