Actually i face a problem while going form one Mainwindow to another Mainwindow..
suppose i have mainwindow name Mainwindow1 and another mainwindow name Mainwindow2...now on the pushbutton of Mainwindow1 when i want to go to Mainwindow2 then it works but the layout of the mainwindow changes..its size decreses..
the code i have wrritten in pushbutton of Mainwindow is..
MainWindow2 *m=new Mainwindow();
but when i perform same task by using diaglog its works fine..so whats the problem..if anyone please suggest..