摘要: QTableWidget是QTableView的子类,主要的区别是QTableView可以使用自定义的数据模型来显示内容(也就是先要通过setModel来绑定数据源),而QTableWidget则只能使用标准的数据模型,并且其单元格数据是QTable... 阅读全文
posted @ 2012-05-03 14:21 虚无真仙 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 这种做法很显然会出错(定义一个头文件需要先引进这个头文件自己,编译必然报错) 解决方法,在头文件中声明另一个类,再在源文件中引入头文件,就像这样: //a.h class b; class a{......}; //a.cpp #include "b.h" .... 阅读全文
posted @ 2012-05-02 22:34 虚无真仙 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 文章参考:http://eric.themoritzfamily.com/python-encodings-and-unicode.html http://desert3.iteye.com/blog/757508 https://github.com/mi... 阅读全文
posted @ 2012-04-26 20:50 虚无真仙 阅读(16) 评论(0) 推荐(0) 编辑
摘要: (这部分转自南瓜小米粥的博客): 这是Python的编码问题,设置python的默认编码为utf8 python安装目录:/etc/python2.x/sitecustomize.py 1 import sys ... 阅读全文
posted @ 2012-04-26 20:23 虚无真仙 阅读(82) 评论(0) 推荐(0) 编辑
摘要: (转载部分:南瓜小米粥的博客http://etosun.com/post/123) ! 安装完sublime text2,在第一次运行的时候,sublime text2 会在%appdata%目录下生成一个Sublime Text 2的文件夹,用于存放... 阅读全文
posted @ 2012-04-26 19:27 虚无真仙 阅读(187) 评论(0) 推荐(0) 编辑
摘要: sublimetext2是一款非常不错的跨平台编译器,它和notepad++一样支持多种语言格式,不过notepad++支持的语言里没有scala(起码6.1.1版不行),但是sublimetext2可以。 而起sublimetext2还提供简便的方法来调用... 阅读全文
posted @ 2012-04-26 15:46 虚无真仙 阅读(10) 评论(0) 推荐(0) 编辑
摘要: (转载自McKelvin's Blog:http://blog.mckelv.in/articles/800.html) Linux版Sublime Text中文不能正常显示的解决方案(修改字体) PS:此方法只能正常现实中文,并没有实现中文输入。 ... 阅读全文
posted @ 2012-04-24 22:55 虚无真仙 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 查看API: StandardButton QMessageBox::warning ( QWidget * parent, const QString & title, const QString & text,StandardButtons butto... 阅读全文
posted @ 2012-04-24 22:10 虚无真仙 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 学习自W3School(英文版):http://www.w3schools.com/js/js_statements.asp "It is normal to add a semicolon at the end of each executable stat... 阅读全文
posted @ 2012-03-31 22:43 虚无真仙 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 终端下输入: $ sudo update-alternatives –config editor 选择vim.basic 即可! 阅读全文
posted @ 2012-03-24 16:03 虚无真仙 阅读(24) 评论(0) 推荐(0) 编辑