At this point the mainwindow is not yet visible, nor is it fully constructed, so geometry information is not valid, which explains any trouble related to geometry such as you do:well, at the constructor of the mainwindow we are showing that QDialog,
animating and expanding.
Well, if the dialog is modal, it stops the even loop for the mainwindow.How could the creation of the QDialog affect the mainwindow? do you have any idea why is affecting the expanding effect?
Other than that, you are giving the dialog a non visible, not fully created parent, so I would expect even the dialog not to show, unless its modal, and I am not sure what the modal dialog does with such "half backed" parent.
But having a visible widget with an invisible parent, is just asking for trouble.
Bookmarks