最近一直在学习 Qt。Qt 有两个许可证:LGPL 和商业协议。这两个协议在现在的 Qt 版本中的代码是完全一致的(潜在含义是,Qt 的早期版本,商业版的 Qt 通常包含有一些开源版本所没有的库,比如 QtSingleApplication 这个库)。所以现在对于普通开发人员和部分商业公司来说,使用 Read More
posted @ 2016-06-02 16:22 findumars Views(1838) Comments(0) Diggs(2)
在使用Qt不多的日子里,已经两次用到了QTableWidget这个控件,也慢慢的习惯和喜欢上了它。再使用QTableWidget的时候,已不像刚开始使用时的迷茫。嗯嗯。现在就来总结总结我与QTableWidget相识的历程......(*^__^*) 嘻嘻…… 使用时也查过不少资料,在此感谢前辈们的 Read More
posted @ 2016-06-02 15:57 findumars Views(45309) Comments(0) Diggs(5)
1. 常用正则表达式 表达式 说明 \r, \n 代表回车和换行符 \t 制表符 \\ 代表 "\" 本身 \^ 匹配 ^ 符号本身 \$ 匹配 $ 符号本身 元字符 说明 . 匹配除了换行符以外的任意字符 \w 匹配字母、数字、下划线、汉字 \s 匹配任意的空白符 \b 单词的开始或结尾 \~ 匹 Read More
posted @ 2016-06-02 15:49 findumars Views(38602) Comments(0) Diggs(3)
我在网上找了很久,把他综合了一下 不说了关键代码来了;(这是一张图片切图的效果) [cpp] view plain copy void SetButtonStyle(QPushButton *button, QString imgsrc, int CutSec) { int img_w=QPixma Read More
posted @ 2016-06-02 15:47 findumars Views(7932) Comments(1) Diggs(1)
1.下载sqlite3相关文件sqlite3.dll、sqlite3.h(可从http://download.csdn.net/detail/mingxia_sui/5249070下载),添加到工程的根目录下。 2. QT += sql int main( void ){ sqlite3 *db=N Read More
posted @ 2016-06-02 15:41 findumars Views(2273) Comments(0) Diggs(0)