#include
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//检查程序是否 已经启动过
if(checkOnly()==false)
return 0;
//设置启动画面
QPixmap pixmap(":/start.jpg");
QSplashScreen screen(pixmap);
screen.show();
a.processEvents();
Widget w;
w.show();
//w显示后销毁
screen.finish(&w);
return a.exec();
}