QSplashScreen用QThead定时
来源:互联网 发布:淘宝上哪家光威是正品 编辑:程序博客网 时间:2024/05/01 02:44
不重载QSplashScreen也可以实现定时,用QThead的sleep方法,不过需要封装成public 的方法
class I : public QThread{public:static void sleep(unsigned long secs) {QThread::sleep(secs);}};int main(int argc, char *argv[]){QApplication a(argc, argv);QTextCodec *codec = QTextCodec::codecForLocale();QTextCodec::setCodecForCStrings(codec);QTextCodec::setCodecForTr(codec);//Initial Welcome screenQSplashScreen *splash = new QSplashScreen(QPixmap(":/image/title.png"));splash->show();Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;splash->showMessage("loading modules...",topRight,Qt::black);mainFrame *mFrame = new mainFrame;LaunchWin launchWin(mFrame);I::sleep(3);splash->finish(&launchWin);launchWin.show();return a.exec();}
0 0
- QSplashScreen用QThead定时
- QSplashScreen
- QSplashScreen
- QT QSplashScreen
- QThead QUdpSocket多线程组播小例子
- QSplashScreen设置启动画面
- QSplashScreen 制作初始化界面
- Qt QSplashScreen开始动画
- 程序启动画面 QSplashScreen
- QThead实现模拟VC工作线程函数
- 程序启动画面QSplashScreen类
- 程序启动画面QSplashScreen类
- [翻译]使用QThead进行线程开发&&线程同步
- Qt 程序启动画面QSplashScreen的使用
- 使用QSplashScreen做QT程序欢迎画面
- Qt Aligning QProgressBar inside a QSplashScreen
- QPixmap的使用+QSplashScreen的使用
- Qt学习——程序启动画面QSplashScreen类
- 母版页已经有from 一页只能有一个服务器端 Form 标记
- Vesions ignore & ld: library not found for -l...
- BufferReader中的readLine()方法
- C++方法对输入的任意数进行排序
- ZOJ-1730
- QSplashScreen用QThead定时
- 两电脑一网线互联共享文件
- "黑马程序员"数组(Array)学习笔记
- 严蔚敏-数据结构-递归算法总结
- UESTC 1900 倒推数组 (找规律)
- C# 逻辑算法
- [Sparrow OS 设计文档连载(一)] Introduction
- Deep Learning Tutorials
- 每天干的事情,遇到的问题,解决的方法