not exactly like that but somewhat similar.

my main.cpp is already there in the previous page. editfrm is the dialog that contains the QDataTable which gets loaded after loading the login dialog called loginfrm..

from main i used to do the following :

QApplication a(argc,argv);
loginfrm lfrm;
a.setMainWidget(&lfrm);
lfrm.show();
a.connect(......);
return a.exec();

( note that the main in the previous page directly loads editfrm. this i have written only for the ease of understanding. but original main is the one like above)
and from the loginfrm after satisfying the conditions of login name and password i used to do the following :

editfrm *efrm = new editfrm(this);
hide();
efrm.show();

this would hide the login dialog form and show the editfrm dialog which contains the QDataTable.
but unfortunately the datatable is not getting updated.


got the picture clear in the mind??