2022年3月1日
摘要: #include <iostream> #include <opencv2\opencv.hpp> #include <QtCore/QCoreApplication> #include "LogHelper.h" using namespace std; int main(int argc, ch 阅读全文
posted @ 2022-03-01 09:14 朱迎春 阅读(147) 评论(0) 推荐(0) 编辑
摘要: // QString与文本文件互操作:#include <QFile> QString s1("ABCD\nEFGH"); QFile file("D:\\Temp\\s1.txt"); if (file.open(QIODevice::WriteOnly | QIODevice::Text)) { 阅读全文
posted @ 2022-03-01 08:59 朱迎春 阅读(87) 评论(0) 推荐(0) 编辑
摘要: // 要么使用"QStringLiteral",要么使用"#pragma execution_character_set("utf-8")",但不能同时使用。 // 长度是6,宽字符。 QString s(QStringLiteral("ABCD中文")); // b1长度:10,能恢复 QByte 阅读全文
posted @ 2022-03-01 08:13 朱迎春 阅读(341) 评论(0) 推荐(0) 编辑