int main(int argc, char *argv[])
{
QApplication app(argc, argv);
/**QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap("/root/images/splash .jpg"));
splash->show();
splash->showMessage("starting ");
sleep(3);
MainWindow w;
w.show ();
splash->finish(&w);
delete splash;*/
QPixmap pixmap("/root/images/splash .jpg");
QSplashScreen splash(pixmap);
splash.show();
splash.showMessage("starting.....");
sleep(3);
//app.processEvents();
MainWindow window;
window.show();
splash.finish(&window);
return app.exec();
}
{
QApplication app(argc, argv);
/**QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap("/root/images/splash .jpg"));
splash->show();
splash->showMessage("starting ");
sleep(3);
MainWindow w;
w.show ();
splash->finish(&w);
delete splash;*/
QPixmap pixmap("/root/images/splash .jpg");
QSplashScreen splash(pixmap);
splash.show();
splash.showMessage("starting.....");
sleep(3);
//app.processEvents();
MainWindow window;
window.show();
splash.finish(&window);
return app.exec();
}