#include #include "formusers.h" int main( int argc, char ** argv ) { QApplication a( argc, argv ); FormUsers *w = new FormUsers; w->show(); a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); return a.exec(); }