在main函数中使用QSplashScreen
QPixmap pixmap(“Q.png”);
QSplashScreen splash(pixmap);
splash.show();
a.progressEvents();//a为QApplication类的对象使程序在显示启动画面的同时仍能响应鼠标等其他事件。
MainWindow w;
w.show();
splash.finish(&w);
QSplashScreen
最新推荐文章于 2020-12-22 19:16:18 发布