MDI Custom Class Dialog not Real Close()
-
Hola:
hola, este es mi codigo para un Custom Dialog, que es desplegado en una MDI Area, en los botones Okey y Close estan conectados a los Slot Accept() y Reject(), los que no producen un Real Cierre(), solo ocultan los controles, cual puede ser el problema?Sorry my english,,, hello , this is my code for Custom Dialog, this is display in a MDI area, in the button Okey or Close, connect a Slot Accept() and Reject(), this not produce a Real Close(), only hide the controls.
Dialog is a Custom Class(), and function normal, wend no parent the mdi area, !!!
what is a problem !!!@
dlgFondos *dlg = new dlgFondos();
dlg.setAttribute(Qt::WA_DeleteOnClose);
this->ui->mdiArea->addSubWindow(dlg);
dlg->open();
@please view the images 1, and 2
[url=http://postimage.org/][img=http://s19.postimage.org/uu398n8ib/mdi_Dialog_Image1.png][/url]
despues de presionar Okey o Cancel
later press a button okey or cancel[url=http://postimage.org/][img=http://s19.postimage.org/rlyrvlm8j/mdi_Dialog_Image2.png][/url]
-
@
my_widget->setAttribute(Qt::WA_DeleteOnClose);
QMdiSubWindow *mdisw;
mdisw = new QMdiSubWindow(ui->mdiArea);
mdisw->setWidget(my_widget);
connect(my_widget, SIGNAL(destroyed()), mdisw, SLOT(deleteLater()));
mdisw->setAttribute( Qt::WA_DeleteOnClose );
ui->mdiArea->addSubWindow(mdisw);
@ -
WOW ...... Very good, !!!!
Thanks !!!! -
;-)