home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / themes / main.cpp < prev    next >
C/C++ Source or Header  |  2001-10-11  |  824b  |  30 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. #include <qwindowsstyle.h>
  13. #include "themes.h"
  14.  
  15. #include "metal.h"
  16.  
  17. int main( int argc, char ** argv )
  18. {
  19.     QApplication::setColorSpec( QApplication::ManyColor );
  20.     QApplication a( argc, argv );
  21.  
  22.     Themes themes;
  23.     themes.setCaption( "Qt Example - Themes (QStyle)" );
  24.     themes.resize( 640, 400 );
  25.     a.setMainWidget( &themes );
  26.     themes.show();
  27.  
  28.     return a.exec();
  29. }
  30.