/ Published in: C++
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* Splash screen is made 90% in main Function*/ //make QPixmap QPixmap pix(":/1"); //create QSplashScreen QSplashScreen *splash=new QSplashScreen; //make Splash has Image splash->setPixmap(pix); //SHOW Splash splash->show(); // NOW u can call ur code that u wanna exec in-disguise behind Splash ;) MainWindow w; for(int i=0;i<900000;i++) for(int j=0;j<900;j++); //where u need to display text written in Splash like LOADING... Qt::Alignment mms=Qt::AlignBottom | Qt::AlignLeft; //the msg itself splash->showMessage("Setting up the main window...",mms, Qt::gray); for(int i=0;i<900000;i++) for(int j=0;j<900;j++); w.show(); splash->finish(&w);