工程中添加资源文件 步骤
右击项目 然后出来 add New
qt Qt Resource file
Name =res
然后打开 res.qrc
把资源放在工程目录下
Add加一个前缀后
Add加文件 然后把资源全部加进去
Save All 全都保存
Action 添加图标 右击然后点编辑
工具栏添加图标 直接拖action 到工具栏
设置背景 右键点change style Sheet 样式表
QSplashScreen 程序启动画面
QPixmap pixmap(“:/splash.png”);
QSplashScreen splash(pixmap);
splash.show();
for(long index=0;index<10000000;index++);
splash.finsh