Thank you.
added this to btn_login_clicked:
Qt Code:
  1. Dialog *dialog=new Dialog();
To copy to clipboard, switch view to plain text mode 

Now everything working and i am able to open a new window on the button click