webquinty
15th October 2009, 21:02
Hello,
I have two forms (UI's) and main.cpp load form1.
Now in form1.cpp I have a botton to load form2 and close form1.
classForm2 *form2 = new classForm2();
form2->show();
form1->close();
Well, If I execute this code, it works fine, but there is a small problem, after close form1 class, appear green background screen and later, form2 is loaded.
My question is, is it possible to avoid this behaviour???
Best regards.
I have two forms (UI's) and main.cpp load form1.
Now in form1.cpp I have a botton to load form2 and close form1.
classForm2 *form2 = new classForm2();
form2->show();
form1->close();
Well, If I execute this code, it works fine, but there is a small problem, after close form1 class, appear green background screen and later, form2 is loaded.
My question is, is it possible to avoid this behaviour???
Best regards.