答案 0 :(得分:1)
使用QSplashScreen
类在实现下方查找:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// splash screen
QPixmap pixmap(":/resources/project_logo.png");
QSplashScreen splash(pixmap, Qt::WindowStaysOnTopHint);
splash.show();
QTimer::singleShot(5000, &splash, &QWidget::close); // keep displayed for 5 seconds
StageOneMain w(nullptr);
w.show();
return a.exec();
}