程序启动的时候会显示一下安卓会有2S多的黑屏,所以想做个全屏的欢迎画面,用QSplashScreen 总是启动后不会消失,在QML中全屏的欢迎界面应该怎么做??
QApplication app(argc, argv);
QPixmap pixmap(":/images/startup.jpg");
QSplashScreen *splash=new QSplashScreen;
splash->setPixmap(pixmap);
splash->show();
app.processEvents();
QQmlApplicationEngine engine;
qmlRegisterType<Thermocouples>("Termop.CVD",1,0,"TermopCVD");
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
splash->hide();
delete splash;
return app.exec();