PDA

View Full Version : How to call one mainwindow to another mainwindow in Qt (or PyQt)



arjunjain
12th April 2011, 07:47
In my project i have created two mainwindow i want to call mainwindow2 from the mainwindow1 (which in running). in mainwindow1 i am already used the app.exec_() (PyQt) and to show maindow2 i am using the maindow2.show() in the click event of the button but does not show anything

high_flyer
12th April 2011, 10:53
In my project i have created two mainwindow
This points to a design problem.
Maybe explain to us what you are trying to do (not how) and we might help you design you application better.


in mainwindow1 i am already used the app.exec_()
Again, this is wrong.
Not sure how you can have app.exec() in your main window, when the window can't be shown before app.exec() is called...