QPixmap pixmap("./Resources/startPage.png");
QSplashScreen splash(pixmap);
splash.show();
splash.move(virtualWidth -500, virtualHeight -800);
int delayTime = 1;
QElapsedTimer timer;
timer.start();
while (timer.elapsed() < (delayTime * 100))
{
app.processEvents();
}
Yunshixun window;
if (currentScreenHei <= 800)
{
window.setGeometry((virtualWidth - 320)*0.95, (virtualHeight - 600)*0.5, 320, 400);//$(ProjectName).
}
else
{
window.setGeometry((virtualWidth - 410)*0.95, (virtualHeight - 760)*0.5, 380, 780);
}
window.show();
app.setQuitOnLastWindowClosed(false);
splash.finish(&window);
return app.exec();