I have written a code which look like this.
//welcome.cpp ...////some functions in this
//Add.cpp ...//some functions in this
QApplication a(argc, argv);
I am calling "Add A.show();" in Welcome.cpp.
Now when I do this I have two screens: One is from welcome and another from Add.
What I wanted is when I call the second screen "Add A.show();". The previous screen ( welcome ) should get closed. This is what the problem is, I could not close the previous screen.
Can somebody suggest me how do I accomplish of having only one screen.