只需要将主函数改为类似于下面的形式即可

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	QPixmap pixmap(":/splash.jpg");
	QSplashScreen splash(pixmap);
	splash.show();
	a.processEvents();
	
	MainWindow w;
	w.show();
	splash.finish(&w);
	return a.exec();
}

  

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2022-01-17
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案