Hi, I´m new here.

I´m developing a qt application and I have a main window as application's user interface. I have several dialogs too.

My problem is I have to develop a new module for the app and it must have a toolbar, stastusbar, etc. As I can´t develop this elements with a QDialog I need a QMainWindow, but when I call show() from the principal window to show the new window it is shown and closed.

How can I show a main window from another main window?

Thanks in advance.
Regards.