随笔分类 -  c++

摘要:'http://memotiyou.blogspot.com/2012/01/qt-c-qhash_6954.html' ainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui 阅读全文
posted @ 2022-05-09 14:09 mtgold 阅读(95) 评论(0) 推荐(0)
摘要:EXCEPTION_RECORD: "https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-exception_record" SetUnhandledExceptionFilter: bool g_showCrashDi 阅读全文
posted @ 2022-05-02 21:35 mtgold 阅读(80) 评论(0) 推荐(0)
摘要:向量与数据的转换 cppreference vector<uchar> buff; ​ buff.data() 阅读全文
posted @ 2021-12-09 09:39 mtgold 阅读(42) 评论(0) 推荐(0)
摘要:VS生成事件,复制配置文件 需求: 在vs2010生成成功时将项目Lib目录下Reader文件夹内的所有文件和文件夹复制到输出目录(Debug或Release目录) 方法: 打开VS2010,右键项目属性-生成事件-后期生成事件命令行 输入以下内容,然后保存 xcopy /e /r /y (Proj 阅读全文
posted @ 2021-12-09 09:03 mtgold 阅读(566) 评论(0) 推荐(0)
摘要:QT字符编码 QTString是Unicode编码 windows下local8Bit是GBK编码 源码文件是用编码的 vs中的cl能识别GBK Mingw中g++识别不带BOM的UTF-8 LINUX中g++识别带BOM的UTF-8 编码转换 QTextCodec: 非Unicode编码转换成Un 阅读全文
posted @ 2021-11-18 18:08 mtgold 阅读(478) 评论(0) 推荐(0)
摘要:qt containers QVector #include <QVector> QVector values = {1,2,3,4,5}; values.first(); values.last(); values.append(6); values.preppend(0); for(int va 阅读全文
posted @ 2021-11-09 13:49 mtgold 阅读(99) 评论(0) 推荐(0)
摘要:QT -= gui 初始化日期时间对象 #include <QTextStream> #include <QDate> #include <QTime> ​ int main(void){ QTextStream out(stdout); QDate dt1{2020, 4, 12}; out << 阅读全文
posted @ 2021-11-09 10:51 mtgold 阅读(362) 评论(0) 推荐(0)