Hi!
I have a widget (or QDialog, does not matter) that should in some cases open a getOpenFilename dialog immediately.
But if I do this getOpenFIlename call in the constructor, I get an error... WA_state_created or so.
One Way aroud it i found already is to call
QTimer::singleShow(200, this, SLOT(openFile())
in the end of the constructor but I know that this can make problems and is jsut a hack.
How can I solve this in a stable way?
Is there an event or signal that informs me about when the dialog is ready to execute openFile() slot?
Thanks for your help in advance!




Reply With Quote
Bookmarks