Qt4, - starting one main window from aqnother
I want to create a Qt4 app which has a main menu window, which can launch other windows (so they can be outside boundaries of main menu window).
To experiment, using Designer, I created a main window with a simple menu and in the same project another main window.
If the second window is class Second and the main menu is class First, I can change my main.cpp to look like:
QApplication a(argc, argv);
and both windows appear.
However if I alter menu in First to have a menu action "Launchapp" and in first.cpp in slot on_Launchapp_triggered I put my s.show(), the Second window does not appear even though the debugger shows that it runs through the code.
Any idea why?