![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
qt
weixin_41485628
这个作者很懒,什么都没留下…
展开
-
QDateTime 和tm 的时间显示
记录一个知识点: QDateTime.toString("hh:mm:ss") 格式化的时间为时区转换后的本地时间 str hh mm ss is: "15:49:20" 而tm.tm_hour 和 tm.tm_min 显示的时间为格林威治时间,未进过时区转换 tm hh is 7 min is 49 sec is 20...原创 2020-05-08 15:58:45 · 504 阅读 · 1 评论 -
QT 下文件夹所有文件的获取,且按照文件格式进行过滤输出
QT5下 指定的文件夹内所有文件的获取 ![测试文件夹下所有文件](https://img-blog.csdnimg.cn/20200115163000238.bmp?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MTQ4N...原创 2020-01-15 16:32:57 · 314 阅读 · 0 评论 -
c++ max_element
关于c++ max_element 函数在老版本linux下编译出错 error: ‘begin’ was not declared in this scope 问题:记录下自己的解决办法由于代码编译是在win下qt5编译,使用获取最大值函数max_element 不会报错但是生产环境为debian6,qt4,,编译会报错解决办法,直接写一个比较函数void GetMaxMin(QVec...原创 2020-01-14 14:46:27 · 803 阅读 · 0 评论