08 2019 档案
摘要:1 添加头文件#include <thread> 2 使用全局函数作为线程函数 3 使用类成员函数作为线程函数 4 使用lambda表达式作为线程函数 结果如下: 5 leetcode练习 题目描述:
阅读全文
摘要:QString dir_str = "E:\CodeTest"; // 检查目录是否存在,若不存在则新建 QDir dir; if (!dir.exists(dir_str)) { bool res = dir.mkpath(dir_str); qDebug() << "新建目录是否成功" << r
阅读全文
摘要:界面如下: 软件源码:https://github.com/Mr-jiayunfei/qt_code.git
阅读全文
摘要:https://www.cnblogs.com/jwk000/p/3560086.html
阅读全文
摘要:https://www.cnblogs.com/hamsterPP/p/5184491.html tortoise git 密钥配置 https://blog.csdn.net/qq_32614411/article/details/84957759
阅读全文
摘要:emit函数之后的内容的执行顺序与信号与槽的连接方式有关。如果需要立即执行emit之后的函数,就需要设置为Qt::QueuedConnection,如果要立即执行槽函数,就需要设置为Qt::DirectConnection。 https://blog.csdn.net/itas109/article
阅读全文
摘要:#include #include #include #include using namespace std; //C++11之前 bool FileExist1(const string &filename) { ifstream f(filename.c_str()); return f.good();//检测流的状态是否正常。当错误的状态flags (eofbit,...
阅读全文
摘要:forever{ ... } //等同于for( ; ; )
阅读全文
摘要:想让Qt程序在XP系统上运行,最好不要使用VS生成Qt项目,后续可能会出现一系列问题 Qt5.7之后的版本不支持在XP系统上运行 XP系统也分为32位和64位,首先确定清楚XP系统的信息,然后选择合适的Qt版本 如果安装的Qt位64位的,设置子系统所需的最低版本为5.01会失效,要求安装的Qt为32
阅读全文
摘要:https://blog.csdn.net/qq_31073871/article/details/83117430
阅读全文
摘要:1 QToolButton的setMenu()为button设置一个菜单,Action是通过QMenu添加的。对于已有的QToolButton,menu()方法返回QMenu对象,QMenu的addAction()方法可以添加QAction 2 可通过设置button透明的方式设置toolbutto
阅读全文
摘要:1 添加头文件#include <QComboBox> 2 常用信号函数 3 常用槽函数 4 使用addItem函数添加不会触发currentIndexChanged信号, 使用InsertItem函数添加会触发currentIndexChanged信号 使用clear函数会触发currentInd
阅读全文
摘要:https://www.cnblogs.com/wanghuaijun/p/7899141.html
阅读全文