摘要: 文章目录[隐藏] Qt 清空文件方法 Qt 清空文件方法 方法一​ void DataOperate::clearFileInfos(QString fileName) { QFile file(fileName); file.resize(0); file.close(); } 方法二 void 阅读全文
posted @ 2020-03-25 13:12 不随。 阅读(79) 评论(0) 推荐(0)
摘要: 1. 插入: append/insert QStringList strList; // << 添加数据 strList << "itzhai.cn" << "pic.itzhai.cn"; // append,在后面插入 strList.append("itzhai"); strList.appe 阅读全文
posted @ 2020-03-25 06:55 不随。 阅读(105) 评论(0) 推荐(0)