Hi, so thanks for replying and the warning, i'm new here so will work on that.
I do get a compiler error about the return type, so i changed it to this:
int MainWindow::newFile()
{
SkoolCalcWizard wizard;
return wizard.exec();
}
int MainWindow::newFile()
{
SkoolCalcWizard wizard;
return wizard.exec();
}
To copy to clipboard, switch view to plain text mode
And also updated the mainwindow.h, the code did run but when i clicked the File menu's New action in the mainwindow, the window immediately exits.
Notice i also replaced the pointer notation with just a normal object declaration, i don't know if this has a significant impact??
So i did this:
void MainWindow::newFile()
{
SkoolCalcWizard wizard;
wizard.show();
}
void MainWindow::newFile()
{
SkoolCalcWizard wizard;
wizard.show();
}
To copy to clipboard, switch view to plain text mode
But then the program runs and does the same thing as above, it immediately exits once i click on the New action.
And no i don't get errors on missing slots
Bookmarks