home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / tabdialog / main.cpp next >
C/C++ Source or Header  |  2001-10-11  |  813b  |  28 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 "tabdialog.h"
  12. #include <qapplication.h>
  13. #include <qstring.h>
  14.  
  15. int main( int argc, char **argv )
  16. {
  17.  
  18.     QApplication a( argc, argv );
  19.  
  20.     TabDialog tabdialog( 0, "tabdialog", QString( argc < 2 ? "." : argv[1] ) );
  21.     tabdialog.resize( 450, 350 );
  22.     tabdialog.setCaption( "Qt Example - Tabbed Dialog" );
  23.     a.setMainWidget( &tabdialog );
  24.     tabdialog.show();
  25.  
  26.     return a.exec();
  27. }
  28.