my app was working first.......
Qt Code:
  1. #include <qapplication.h>
  2. #include <qsplashscreen.h>
  3. #include "mymainform.h"
  4. int main( int argc, char ** argv )
  5. {
  6. QApplication a( argc, argv );
  7.  
  8. if (!QGLFormat::hasOpenGL())
  9. qFatal("This system has no OpenGL support");
  10.  
  11. QSplashScreen splash(QPixmap::fromMimeSource("splash.jpg"));
  12. splash.show();
  13. splash.message("Loading ... please wait", 0, QColor(255,255,255) );
  14. a.processEvents();
  15.  
  16. myMainForm W;
  17. //W.resize(600,500);
  18. a.setMainWidget(&W);
  19.  
  20. W.show();
  21. a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
  22. splash.finish(&W);
  23. return a.exec();
  24. }
To copy to clipboard, switch view to plain text mode