qt 中保存图片,图片的名字,按照时间来保存

复制代码
            //是否保存数据集的
            //            if(is_Capture_images)
            //            {
            //                QString dirStr = RSPS_CAMERA_PIC_DIR_quanjing;
            //                QDir dir;
            //                if (!dir.exists(dirStr))
            //                {
            //                    dir.mkpath(dirStr);
            //                }
            //                QDateTime current_date_time =QDateTime::currentDateTime();
            //                QString current_date =current_date_time.toString("yyyy-MM-dd_hh-mm-ss_zzz");
            //                QString fileName = dirStr + "\\";
            //                fileName += "M" + current_date;
            //                fileName += ".jpg";
            //                cv::imwrite(fileName.toStdString(),frame);
            //                is_Capture_images=false;

            //            }
相关推荐
雾岛听蓝1 小时前
C++:模拟实现string类
开发语言·c++
XFF不秃头1 小时前
力扣刷题笔记-合并区间
c++·笔记·算法·leetcode
编程之路,妙趣横生1 小时前
STL(七) unordered_set 与 unordered_map 基本用法 + 模拟实现
c++
寂柒2 小时前
c++--
c++
wregjru2 小时前
【读书笔记】Effective C++ 条款3:尽可能使用const
开发语言·c++
追烽少年x2 小时前
Qt中线程同步类介绍(一)
qt
树欲静而风不止慢一点吧3 小时前
Qt5/6版本对应的Emscripten版本
开发语言·qt
历程里程碑3 小时前
滑动窗口秒解LeetCode字母异位词
java·c语言·开发语言·数据结构·c++·算法·leetcode
Tandy12356_3 小时前
手写TCP/IP协议栈——TCP结构定义与基本接口实现
c语言·网络·c++·网络协议·tcp/ip·计算机网络
Helibo443 小时前
2025年12月gesp3级题解
数据结构·c++·算法