Hi there,

I am developing a Qt app for the display of plots on Linux (RHEL7) and with Qt 5.9. I'm facing layout problems with a wizard dialog I implemented. The core issue is that when the contents of the wizard dialog change in some cases the size of the dialog window itself would have to change too, e.g. because the new wizard page's contents need more horizontal or vertical space. But this does not always happen.

I use the wizard dialog in two different contexts:

1. For the creation of a new plot. Here the first wizard page allows for specification of the plot's type, the second then asks for the to be created plot's properties like the dimensions of x and y axis and others. The second page requires significant more vertical space than the first page. Upon click on the wizard's "Next" button the wizard's vertical size grows as much as needed to make the second page fit into the available space which is fine!

2. I reuse the wizard for editing of an already existing plot's properties. In this scenario the first page which is shown in the wizard dialog is the one which is shown as second page in the plot creation scenario. To my big surprise the wizard dialog's size is not adjusted to the size required by that page when it is used as
first page. Instead parts of the contents are vertically squeezed (see screenshot).

Layout Problem Edit Plot Wizard Page.jpg

Interestingly when clicking with the left mouse button on a widget in the sqeezed wizard window this results in an immediate resize of the dialog to the proper size. The same happens when I move the cursor (and thus the focus) away from the wizard dialog.

I could not yet figure out what I can do to enforce the layout calculation programmatically that would lead to a larger size of the wizard dialog in the second usage scenario.
Any helpful hint would be highly appreciated.