is it possible to open a new mainwindow from a mainwindow?
if it is... can you tell me how?
thanx...
Printable View
is it possible to open a new mainwindow from a mainwindow?
if it is... can you tell me how?
thanx...
finally... thanx to this : http://www.qtforum.org/article/28674...ainwindow.html
mainwindow.h
Code:
class mainWindow : public ..., private Ui.. { private slots: void openNewMainWindow(); }
mainwindow.cpp
Code:
#include "newmainwindow.h" newMainWindow *newWin = 0; { setupUi(this); connect(buttonObjectName, SIGNAL(clicked()), this, SLOT(openNewMainWindow())); } void mainwindow::openNewMainWindow() { newWin = new newMainWindow(); newWin->show(); }
newmainwindow.h & newmainwindow.cpp are just common mainwindow apps...