when i return from one dialog to another,the Interface design is change..suppose i had dialog named ss.ui contain buttons?supose there is another dialog hh.ui...In first dialog i write a code like this...

hh s(this)//create a instance of second dialog
s.show();
s.exec();
after executing i came to second dialog..in second dialog cpp file when i write the code like this..
ss a(this)//create a instance of first dialog
a.show();

it will not work...but if i write like this..
ss *a=new ss();
a.show();

it will work but once i return to first dialog the size of button become smaller as compared it is actually constructed..so hw can i solve this problem..