#include #include "mainform.h" #include "prevform.h" #include "about.h" int main( int argc, char ** argv ) { QApplication a( argc, argv ); MainForm w; w.show(); a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); return a.exec(); }