main.cpp
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPixmap pixmap("img/logo.jpg");
QSplashScreen screen(pixmap);
screen.show();
screen.showMessage("LOVE", Qt::AlignCenter, Qt::red);
#if 0
int delayTime = 5;
QElapsedTimer timer;
timer.start();
while(timer.elapsed() < (delayTime * 1000))
{
app.processEvents();
}
#endif
#if 0
QDateTime n=QDateTime::currentDateTime();
QDateTime now;
do{
now=QDateTime::currentDateTime();
app.processEvents();
} while (n.secsTo(now)<=5);//5为需要延时的秒数
#endif
MainWindow window;
window.