[Qt-interest] Fwd: Multiple screen.
Mohammed Imran B
imran.ar20487 at gmail.com
Wed Jan 13 10:11:50 CET 2010
Hi,
I have written a code which look like this.
//welcome.h
class Welcome//Contains list widget, which contains list of items and when I
select any of the item say Add, I'll be calling the
{ } // Add.show();
//welcome.cpp ...////some functions in this
//Add.h
class ADD
{}
//Add.cpp ...//some functions in this
//main.cpp
main()
{
QApplication a(argc, argv);
welcome W;
W.show();
return a.exec();
}
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 closing the Welcome screen.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100113/48a9bafe/attachment.html
More information about the Qt-interest-old
mailing list