int main(int argc, char *argv[]) { QApplication app(argc, argv); QPixmap pixmap(":/splash.png"); QSplashScreen splash(pixmap); splash.show(); app.processE……
int main(int argc, char *argv[]) { QApplication app(argc, argv); QPixmap pixmap(":/splash.png"); QSplashScreen splash(pixmap); splash.show(); app.processEvents(); ……
用QSplashScreen很合适。 要是不合适就用一个对话框,把边框去了,里面放个QLabel显示图片,主界面hide,主界面加载完成关闭对话框,显示主界面。
16,239
社区成员
26,650
社区内容
加载中
试试用AI创作助手写篇文章吧