Skip to content
Snippets Groups Projects
Commit 82b7aff5 authored by Mohammad Mahadi Hasan's avatar Mohammad Mahadi Hasan
Browse files

added delay of 1.5 seconds in splash

parent 35959a12
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
#include <QDebug>
#include <iostream>
#include <QSplashScreen>
#include <QTime>
int main(int argc, char *argv[])
{
......@@ -17,6 +18,12 @@ int main(int argc, char *argv[])
a.processEvents();
QTime dieTime = QTime::currentTime().addMSecs( 1500 );
while( QTime::currentTime() < dieTime )
{
QCoreApplication::processEvents( QEventLoop::AllEvents, 100 );
}
MainWindow w;
w.show();
splash.finish(&w);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment