int main(int argc, char *argv[]) { QApplication a(argc, argv); //Create the menu and the game board. WizardMenuClass* w = new WizardMenuClass; GameBoard* b = new GameBoard; //Set the game board and menu so that they are connected. w->setGameBoard(b); b->setWizardmenu(w); w->show(); //Show the game board. return a.exec(); }