A friend of mine and myself are working on this application for QT4. Each of us has created parts of the gui that work. I am trying to integrate his work into the main window of the gui (his work is another form that should load up). As of now this is the code I am using to try and load his second window:
//connect buttons and such
connect(exitbtn, SIGNAL(triggered()),this,SLOT(terminated()));
connect(add, SIGNAL(triggered()),this,SLOT(add_rec()));
void MainWindowImpl::add_rec()
{
//form quits as soon as it loads...?
DialogImpl dia;//name of his form
dia.show();
}
I have an include statement up top to include his header file. The program compiles just fine, but when I hit the trigger his form loads up for maybe 1/2 a second and then quits. Does anyone know what I am doing wrong?