Qt程序启动画面
2013-01-07 13:22
218 查看
代码如下:
int main(int argc, char *argv[]) { QApplication a(argc, argv); QSplashScreen *splash=new QSplashScreen; splash->setPixmap(QPixmap(":/Game.jpg")); splash->show(); Qt::Alignment topRight=Qt::AlignRight|Qt::AlignTop; splash->showMessage(QObject::tr("Setting up the application..."),topRight,Qt::white); MainWindow w; splash->showMessage(QObject::tr("Loading the modules..."),topRight,Qt::white); // loadModules(); splash->showMessage(QObject::tr("Establing the connection..."),topRight,Qt::white); w.show(); splash->finish(&w); delete splash; return a.exec(); }
相关文章推荐
- Qt程序启动画面播放(gif与swf两种动画格式)
- Qt5 程序启动画面动图效果
- 【实例】Qt创建程序启动画面
- 自学QT之实现程序启动画面
- 自学qt之添加动作图标 程序启动画面
- Qt_程序启动画面
- QT设计程序启动时的画面
- Qt程序启动画面播放(gif与swf两种动画格式) - 路上的脚印
- Qt 程序启动画面QSplashScreen的使用
- Qt程序启动画面
- QT——程序启动画面
- QSplashScreen类实现Qt程序启动画面
- Qt 之程序启动画面
- Qt学习16——程序启动画面QSplashScreen
- Qt之程序启动画面
- 实现Qt程序启动画面
- Qt程序启动画面播放(gif与swf两种动画格式)
- 【Qt开发】实现Qt程序启动画面
- QT QSplashScreen程序启动画面使用心得
- 实现Qt程序启动画面