这个函数用了这么久,到今天程序出错才发现这个问题。。。也就是说,必须设置QTextCodec *codec = QTextCodec::codecForName("System");toLocal8Bit才能转换成本地字符http://doc.qt.io/qt-5/qstring.html#toLo... Read More
posted @ 2016-01-07 18:46 findumars Views(1099) Comments(0) Diggs(0)
MinGW编译器: 1.打开工程文件,在工程文件浏览其中,在你要设置为预编译的头文件上,点击鼠标右键,选择“属性(properties)” 你会看到一个多页面的属性框,选择“构建(build)”页面,将“编译文件(complie file)”选项勾上,其默认状态为没有勾 2.从菜单->工程(proj Read More
posted @ 2016-01-07 18:23 findumars Views(1832) Comments(0) Diggs(0)
http://blog.csdn.net/u013007900/article/details/50231933 Read More
posted @ 2016-01-06 23:00 findumars Views(796) Comments(0) Diggs(0)
QMessageBox类: 含有Question消息框、Information消息框、Warning消息框和Critical消息框等 通常有两种方式可以来创建标准消息对话框: 一种是采用“基于属性”的API,一种是使用QMessageBox的静态方法。 后者书写容易,但缺少灵活性,针对用户给出的提示 Read More
posted @ 2016-01-06 22:43 findumars Views(2531) Comments(0) Diggs(0)
char * 与 const char *的转换char *ch1="hello11";const char *ch2="hello22";ch2 = ch1;//不报错,但有警告ch1 = (char *)ch2;1234char 与 QString的转换char 转换为 QString其实方法有... Read More
posted @ 2016-01-06 22:31 findumars Views(8357) Comments(0) Diggs(0)