随笔分类 -  QT

摘要:QT 正则表达式翻译 留个笔记,翻译的很生硬, introduction Regexps are built up from expressions, quantifiers, and assertions. The simplest expression is a character, e.g.xor5. An expression can also be a set of characters... 阅读全文
posted @ 2010-08-25 22:26 网络小虫 阅读(2924) 评论(0) 推荐(0)
摘要:想要把程序放到其他电脑上运行,至少需要包含下面的基本运行库,还有一些库添加的话视项目而定 这些动态库都能在QT的安装目录下可以找到libgcc_s_dw2-1.dllmingwm10.dllQtCore4.dllQtGui4.dll 阅读全文
posted @ 2010-08-24 01:25 网络小虫 阅读(230) 评论(0) 推荐(0)
摘要:将以下代码放在main里面最开始的地方 //解决中文乱码的问题QTextCodec *codc = QTextCodec::codecForName("GB2312"); QTextCodec::setCodecForCStrings(codc);QTextCodec::setCodecForLocale(codc);QTextCodec::setCodecForTr(codc); 阅读全文
posted @ 2010-08-24 01:22 网络小虫 阅读(354) 评论(0) 推荐(0)
摘要:一.到http://qt.nokia.com/products下载最新版的SDK安装包(Linux下面的)...得到一个bin文件qt-sdk-linux-x86-opensource-2010.02.bin二.我把下载到的文件放到home下面...在终端中运行命令1.chmod u+x qt-sdk-linux-x86-opensource-2010.02.bin该命令让qt-sdk-linux... 阅读全文
posted @ 2010-08-24 01:21 网络小虫 阅读(2936) 评论(0) 推荐(0)
摘要:win7 + qt 4.62 安装1。首先从官网下载一个QT下来,我下的是4.6的,200多M,装的时候还要1个G的空间,还真是大2。然后把它安装到电脑上,安装就没什么了,一路默认确定就可以了,这个没什么说的完了得按以下设一下环境变量Path,把下面这串加到原来path后面,记得中间得用;隔开,最后也以;结束C:\Qt\2010.02.1\qt\bin;C:\Qt\2010.02.1\mingw... 阅读全文
posted @ 2010-08-24 01:19 网络小虫 阅读(493) 评论(0) 推荐(0)
摘要:用ini存储配置信息是很经常的事,QT已经准备了一个类QSetting来给我们支持这类操作了。真是想得周到。 使用该类几个必须要注意的是: 1.注意设置ini文件字符集,倘若不当,读写将面目全非 2.ini 文件里面不能包含有双引号字符,要不会解析出不正确的结果 3.尽量利用endGroup()beginGroup() 读取一组相同【scetion】的值提高阅读性,自我感觉会优雅一点 阅读全文
posted @ 2010-08-24 01:16 网络小虫 阅读(2536) 评论(0) 推荐(0)
摘要:About This Manual This manual describes qmake, a cross-platform utility for generating makefiles. qmake was written by Trolltech to provide a simple-to-use tool for supporting large and complex softw... 阅读全文
posted @ 2010-08-22 14:05 网络小虫 阅读(2518) 评论(0) 推荐(0)
摘要:qmake Advanced Usage Many qmake project files simply describe the sources and header files used by the project, using a list of name = value and name += value definitions. qmake also provides other op... 阅读全文
posted @ 2010-08-21 20:01 网络小虫 阅读(892) 评论(0) 推荐(0)
摘要:环境 windows 7 qt 4.62 应用程序根目录下 1.准备一个test.ico 2.创建*.rc文件 IDI_ICON1 ICON DISCARDABLE "test.ico" 3.修改*.pro加入: RC_FILE = *.rc 阅读全文
posted @ 2010-08-15 23:33 网络小虫 阅读(402) 评论(0) 推荐(0)