home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / addressbook / main.cpp < prev    next >
C/C++ Source or Header  |  2001-10-11  |  814b  |  29 lines

  1. /****************************************************************************
  2. ** $Id:  qt/main.cpp   3.0.0   edited Jun 22 13:24 $
  3. **
  4. ** Copyright ( C ) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #include <qapplication.h>
  12.  
  13. #include "mainwindow.h"
  14.  
  15. int main( int argc, char ** argv )
  16. {
  17.     QApplication a( argc, argv );
  18.  
  19.     ABMainWindow *mw = new ABMainWindow();
  20.     mw->setCaption( "Qt Example - Addressbook" );
  21.     a.setMainWidget( mw );
  22.     mw->show();
  23.  
  24.     a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
  25.     int result = a.exec();
  26.     delete mw;
  27.     return result;
  28. }
  29.