Maybe it can't be done....
I have a Widget-dialog based. Depending of a parameter I show a Qframe or another.
I can create two instances of this from the main window but I can't show an instance of 'myself' ....
I dont see anything or the dialog close itself....

The initial dialog is modal, showed from mainwindow with 'exec()'.

This is pseudo code for MY_WIDGET class.
I have a private var :
MY_WIDGET * my_instance_of_myself ; ( because i'm going to make some conection later )

I have a pushbutton click with:
my_instance_of_myself = new MY_WIDGET("the_option_i_want");
my_instance_of_myself.exec(); - this one shows an empty dialog.
my_instance_of_myself.show(); - this one 'auto-close' the initial dialog

Any quick idea to solve this ?
Thanks