MinGW编译器: 1.打开工程文件,在工程文件浏览其中,在你要设置为预编译的头文件上,点击鼠标右键,选择“属性(properties)” 你会看到一个多页面的属性框,选择“构建(build)”页面,将“编译文件(complie file)”选项勾上,其默认状态为没有勾 2.从菜单->工程(proj Read More
posted @ 2016-01-07 18:23 findumars Views(1841) Comments(0) Diggs(0)
http://blog.csdn.net/u013007900/article/details/50231933 Read More
posted @ 2016-01-06 23:00 findumars Views(798) Comments(0) Diggs(0)
QMessageBox类: 含有Question消息框、Information消息框、Warning消息框和Critical消息框等 通常有两种方式可以来创建标准消息对话框: 一种是采用“基于属性”的API,一种是使用QMessageBox的静态方法。 后者书写容易,但缺少灵活性,针对用户给出的提示 Read More
posted @ 2016-01-06 22:43 findumars Views(2549) 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(8374) Comments(0) Diggs(0)
在上一章中,我们介绍了有关QFile和QFileInfo两个类的使用。我们提到,QIODevice提供了read()、readLine()等基本的操作。同时,Qt 还提供了更高一级的操作:用于二进制的流QDataStream和用于文本流的QTextStream。本节,我们将讲解有关QDataStre Read More
posted @ 2016-01-06 22:29 findumars Views(4717) Comments(0) Diggs(0)