Try like this...
create a pointer to form2 in form1 class. allocate memory in constructor.
inside button_on_click slot

call pointer->show();