#include <qapplication.h>
#include <qsplashscreen.h>
#include "mymainform.h"
int main( int argc, char ** argv )
{
qFatal("This system has no OpenGL support");
splash.show();
splash.
message("Loading ... please wait",
0,
QColor(255,
255,
255) );
a.processEvents();
myMainForm W;
//W.resize(600,500);
a.setMainWidget(&W);
W.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
splash.finish(&W);
return a.exec();
}
#include <qapplication.h>
#include <qsplashscreen.h>
#include "mymainform.h"
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
if (!QGLFormat::hasOpenGL())
qFatal("This system has no OpenGL support");
QSplashScreen splash(QPixmap::fromMimeSource("splash.jpg"));
splash.show();
splash.message("Loading ... please wait", 0, QColor(255,255,255) );
a.processEvents();
myMainForm W;
//W.resize(600,500);
a.setMainWidget(&W);
W.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
splash.finish(&W);
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks