main.cpp 830 B

123456789101112131415161718192021222324252627
  1. /****************************************************************************
  2. ** $Id: qt/main.cpp 3.3.8 edited Jan 11 14:37 $
  3. **
  4. ** Copyright (C) 1992-2007 Trolltech ASA. 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. #include "showimg.h"
  11. #include <QtGui/QApplication>
  12. int main( int argc, char **argv )
  13. {
  14. // QApplication::setColorSpec( QApplication::ManyColor );
  15. QApplication a( argc, argv );
  16. ImageViewer *w = new ImageViewer();
  17. w->setAttribute( Qt::WA_DeleteOnClose );
  18. w->setWindowTitle("IMT DLL - Example");
  19. w->show();
  20. QObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
  21. return a.exec();
  22. }