Newer
Older
Pospelov, Gennady
committed
#include <iostream>
SplashScreen *splash = new SplashScreen(&a);
splash->show();
int time = 1000;
QTime dieTime = QTime::currentTime().addMSecs(1000);
QTime timer;
timer.start();
while( QTime::currentTime() < dieTime )
{
splash->setProgress(timer.elapsed()/(time/100));
QCoreApplication::processEvents( QEventLoop::AllEvents, 100 );
}
Pospelov, Gennady
committed
//#ifdef BORNAGAIN_CRASHHANDLER
// std::cout << "BORNAGAIN_CRASHHANDLER" << std::endl;
// StackTraceSetup s;
//#endif
// QVector<double> vector;
// double d = vector[0]+0.1;
// qDebug() << "main double:" << d;
Pospelov, Gennady
committed