由于项目需求,需要把一张图片做圆周运动,用到了属性动画,坐标计算等。在编写代码的过程中,由于太长时间没用sin,cos函数忘了是用弧度为单位,汗呀下面把代码贴出来[cpp]view plaincopy/**圆周运动动画**/#ifndefCircleAnimationWidget_H#defineC... Read More
posted @ 2015-11-01 09:01 findumars Views(1342) Comments(0) Diggs(0)
聊天聊出个“超级的哥” 2月14日下午两点多,将一位客人送到徐家汇以后,像往常一样,臧勤将车开到了不远处的美罗大厦。没有生意,他耐心地又兜了一圈。 第二圈,他看到一位夹着笔记本电脑包、白领模样的人出了大厦门,他将车径直开到白领的跟前。 17年出租车司机的经验帮了他的忙:白领要到浦东机场,这单生... Read More
posted @ 2015-10-31 06:22 findumars Views(306) Comments(0) Diggs(0)
作者:网事如风链接:https://www.zhihu.com/question/22923569/answer/23172337来源:知乎著作权归作者所有,转载请联系作者获得授权。 完全支持C++11的好像只有gcc4.8.x和clang3.3+,据说clang3.4完全支持C++14了,不过俺还 Read More
posted @ 2015-10-31 03:48 findumars Views(3373) Comments(0) Diggs(0)
windows端的Qt程序往往需要打开外部程序(如:prog.exe),并且需要确定这个外部程序是唯一打开的。 1、判断系统中是否存在prog.exe void judge() { QProcess tasklist; tasklist.execute("tasklist", QStringList Read More
posted @ 2015-10-31 01:04 findumars Views(7517) Comments(0) Diggs(1)
1.Linux中一些头文件的作用: #include <assert.h> //ANSI C。提供断言,assert(表达式) #include <glib.h> //GCC。GTK,GNOME的基础库,提供很多有用的函数,如有数据结构操作函数 #include <dirent.h> //GCC。文 Read More
posted @ 2015-10-30 16:42 findumars Views(2550) Comments(0) Diggs(1)