上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 54 下一页
摘要: 类型转换: 1、QString::toLocal8Bit() const , 查看原文介绍: Returns the local 8-bit representation of the string as a QByteArray. The returned byte array is undefi 阅读全文
posted @ 2020-03-05 10:46 cogitoergosum 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 在public里加入 using QSettings::QSettings; // QSettings 父类名称 表示继承了父类的构造函数与析构函数子类调用父类的成员函数: 父类名称::成员函数名称 阅读全文
posted @ 2020-03-05 10:31 cogitoergosum 阅读(904) 评论(0) 推荐(1) 编辑
摘要: 1、在c++中其实是有最小权限原则的,非const对象是可以调用const成员函数的。 2、const成员函数是不能调用非const成员函数,只能通过强制或者定义mutable 3、构造与析构函数不能定义为const成员函数,构造跟析构会对对象做修改 阅读全文
posted @ 2020-03-05 10:07 cogitoergosum 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/wangjian8888/p/11609069.html 阅读全文
posted @ 2020-02-28 19:47 cogitoergosum 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 链接: https://www.cnblogs.com/linuxAndMcu/p/11016322.html 阅读全文
posted @ 2020-02-25 18:34 cogitoergosum 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 遍历当前文件 @echo off echo %cd% set work_path=%cd% echo %work_path% cd %work_path% rem for /f "delims=" %a in ('dir %cd%') do set FilePath=%~a rem echo %Fi 阅读全文
posted @ 2020-02-24 15:23 cogitoergosum 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://blog.csdn.net/wkr2005/article/details/93711321 阅读全文
posted @ 2020-02-18 17:35 cogitoergosum 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: QT的配置文件有pro、pri、prf 1、contains(QWT_CONFIG, QwtSvg) { } 2、warning(“”) 输出 3、 阅读全文
posted @ 2020-02-18 15:26 cogitoergosum 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 被.pro文件中的相对路径给整糊涂了,仔细研究后,原来.pro文件中有两种相对路径。 一种情况下./表示.pro文件所在的目录 另一种情况下./表示构建生成目录 INCLUDEPATH SOURCE FORM HEADERS 这些变量中使用的./指的是.pro文件所在的目录 而DESTDIR OBJ 阅读全文
posted @ 2020-02-17 14:46 cogitoergosum 阅读(1264) 评论(0) 推荐(0) 编辑
摘要: 1、读取/etc 目录下的最新时间戳作为更新时间 2、有启用ntp, 通过ntp 更新时间 参考链接 : http://bbs.carystudio.com/forum.php?mod=viewthread&tid=335 阅读全文
posted @ 2020-02-17 09:48 cogitoergosum 阅读(942) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 54 下一页