博客园 首页 私信博主 显示目录 隐藏目录 管理 动画
摘要: 计时器 1 QTimer *timer; 2 timer->start (2000); 3 void PictureShow::stopStartPage() 4 { 5 if (timer->isActive()) 6 { 7 timer->stop(); 8 } 9 10 else 11 { 1 阅读全文
posted @ 2016-09-19 07:48 ants_double 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 直接 代码: 1 // lyy : 2016/8/26 16:40:11 说明:读取文本 2 bool FileOpeartion:: GetTheTextContent (const QString strPath, QStringList &strContent) 3 { 4 QFile fil 阅读全文
posted @ 2016-09-19 07:39 ants_double 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1,各种对就是不显示,因为路径中有其它符号如\n\r什么的 1 QStringList FileOpeartion::PathCombine (const QString strPath, QStringList strListTemp) 2 { 3 QStringList strReturn; 4 阅读全文
posted @ 2016-09-19 07:38 ants_double 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1、3以后尽量手写,因为没有现在的控件了 2、 1 // lyy : 2016/8/26 12:17:41 说明:存放radioButton 2 QButtonGroup *buttonGroup; 3 // lyy : 2016/8/26 11:11:55 说明:radioButton 4 but 阅读全文
posted @ 2016-09-19 07:35 ants_double 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 1、在启动应用程序前加入以下代码: 1 //配置字符编码环境,让应用程序支持中文。 2 QTextCodec *codec = QTextCodec::codecForName("System"); 3 QTextCodec::setCodecForLocale(codec); 4 QTextCod 阅读全文
posted @ 2016-09-19 07:27 ants_double 阅读(105) 评论(0) 推荐(0) 编辑