Hi,
how can make the wizard show up alone, and then when it finishes, the main window comes up?
My main.cpp code is this:
int main(int argc, char ** argv)
{
MainWindowImpl win;
win.show(); //shows the main window
win.data = new dataBase;
startWizard wizard(&win, &(win.data));
wizard.show(); //shows the wizard
app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
return app.exec();
}
int main(int argc, char ** argv)
{
QApplication app(argc, argv);
MainWindowImpl win;
win.show(); //shows the main window
win.data = new dataBase;
startWizard wizard(&win, &(win.data));
wizard.show(); //shows the wizard
app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
return app.exec();
}
To copy to clipboard, switch view to plain text mode
thanks a bunch for the help,
david
Bookmarks