Hello Friends ,I have written the code to call a mainwindow from a dialog on pushbutton click as below

Qt Code:
  1. void Dialog1::on_pushButton_2_clicked()
  2. {
  3. MainWindow *b=new MainWindow;
  4. b->showMaximized();
  5. }
To copy to clipboard, switch view to plain text mode 
and i can go to the mainwindow but the size (layout) is changing,I dont know how to solve this,so please help me out


regards
ranjit