is your mainwindow visible at that time?Before starting the aplication we display a QDialog with some text.
If not, that is the reason for your problems.
is your mainwindow visible at that time?Before starting the aplication we display a QDialog with some text.
If not, that is the reason for your problems.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
well, at the constructor of the mainwindow we are showing that QDialog, so if the user acepts then the constructor finishes and displays the window, otherwhise it will quit the aplication.
So i guess the mainwindow is not visible nor active at the time we create the dialog.
But I still dot get it, once the user accepted the dialog, the mainwindow is visible and the dialog hidden. How could the creation of the QDialog affect the mainwindow? do you have any idea why is affecting the expanding effect?
thanks a lot!
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.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
superpacko (21st July 2011)
Bookmarks