在 Windows 中,控件得到焦点的时候,会显示一个虚线框,很多时候觉得不好看,通过自定义 QProxyStyle 就可以把这个虚线框去掉。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 // 文件名: NoFocus Read More
posted @ 2017-08-14 20:35
findumars
Views(878)
Comments(0)
Diggs(0)
Qt 中,静态图片 PNG,JPG 等可以用其创建 QPixmap,调用 QLabel::setPixmap() 来显示,但是能够具有动画的 GIF 却不能这么做,要在 QLabel 上显示 GIF,需要借助 QMovie 来实现。 QLabel 显示 GIF 使用 GIF 图片的路径创建 QMov Read More
posted @ 2017-08-14 20:34
findumars
Views(3447)
Comments(0)
Diggs(0)
gcc -E filename.cpp 会生成 filename.cpp 的预处理文件,这样就能看到宏展开后的代码,用于理解和调试宏非常有帮助。 gcc -E filename.cpp 会生成 filename.cpp 的预处理文件,这样就能看到宏展开后的代码,用于理解和调试宏非常有帮助。 gcc Read More
posted @ 2017-08-14 20:33
findumars
Views(1428)
Comments(0)
Diggs(0)
数据库访问工具 DBUtil DBUtil 用于简化数据库的访问,只要准备好配置文件,调用 DBUtil 的静态函数就能直接得到查询数据库的结果。 本文主要内容有: 数据库访问的思考 DBUtil 实例 DBUtil 的 API DBUtil 的实现 把 SQL 语句放到文件里 ORMapping Read More
posted @ 2017-08-14 20:30
findumars
Views(2006)
Comments(1)
Diggs(0)

浙公网安备 33010602011771号