//SplashScreen程序动画
QPixmap image(qApp->applicationDirPath()+"/timg.jpg");
QSplashScreen SplashScreen;
SplashScreen.setPixmap(image);
SplashScreen.show();
//加载图片
QFrame *frame = new QFrame;//
frame->resize(400,700);
QPixmap pixmap(qApp->applicationDirPath()+"/timg.jpg");
QPalette palette;
palette.setBrush(frame->backgroundRole(),QBrush(pixmap));
frame->setPalette(palette);
frame->setMask(pixmap.mask()); //可以将图片中透明部分显示为透明的
frame->setAutoFillBackground(true);
frame->show();