摘要: 将博客搬至CSDN 阅读全文
posted @ 2023-11-21 09:08 Dipsyhu 阅读(13) 评论(0) 推荐(0) 编辑
摘要: path:kernel/locking/mutex.c function source code: void __sched mutex_lock(struct mutex *lock) { might_sleep(); if (!__mutex_trylock_fast(lock)) __mute 阅读全文
posted @ 2022-04-10 11:03 Dipsyhu 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 完整报错: warning: 'memset' offset [17, 48] from the object at 'r6' is out of the bounds of referenced subobject 'rtmsg_dst' with type 'struct in6_addr' a 阅读全文
posted @ 2021-05-03 00:55 Dipsyhu 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 报错内容: 2021-05-01T16:21:46 WARNING: 'makeinfo' is missing on your system.2021-05-01T16:21:46 You should only need it if you modified a '.texi' file, or 阅读全文
posted @ 2021-05-01 16:59 Dipsyhu 阅读(316) 评论(0) 推荐(0) 编辑
摘要: rk3399skd编译kernel 报错: scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory 21 | #include <openssl/bio.h> | 原因是没有安装 libs 阅读全文
posted @ 2021-04-25 22:03 Dipsyhu 阅读(3164) 评论(0) 推荐(0) 编辑
摘要: 1、使用 try catch 语句处理C++ 中的异常 2、使用throw 关键字抛出异常 3、同一个try语句可以跟上多个catch 语句 4、异常处理 不进行类型转换 代码示例: void demo1() { try { throw 0; // throw 'c'; // throw "abc" 阅读全文
posted @ 2020-10-28 00:06 Dipsyhu 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 发送事件 主要函数: bool QCoreApplication::sendEvent ( QObject *receiver, QEvent * event ) void QCoreApplication::postEvent ( QObject *receiver, QEvent * event 阅读全文
posted @ 2020-03-20 23:31 Dipsyhu 阅读(1635) 评论(0) 推荐(0) 编辑
摘要: Qt文件类型分为文本文件(内容是可以读的文本字符)与数据文件(二进制数据)。 注:对于电脑来说所有的文件都是二进制数据。 QFile直接支持文本文件与数据文件的读写。 QTextStream text(&file); QDataStream text(&file); 阅读全文
posted @ 2020-02-21 00:20 Dipsyhu 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: Qt中IO操作的处理方式: ——Qt通过统一的接口简化了 文件 与 外部设备 的操作方式 ——Qt中的文件可以看成 一种特殊的外部设备 ——Qt中的文件操作 与外部设备操作相同 IO操作中接口函数: ——bool open(OpenMode mode) 打开设备 ——QByteArrary read 阅读全文
posted @ 2020-02-20 17:03 Dipsyhu 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 布局管理器: ——提供相关类对界面组件进行布局管理 ——能够自动排列窗口的组件界面 ——窗口变化后自动更新组件的大小 QBoxLayout布局管理器(可以相互嵌套) ——以水平或者垂直的方式进行管理界面组件 ——垂直方式QVBoxLayout ——水平方式QHBoxLayout 测试代码: /*布局 阅读全文
posted @ 2020-02-11 17:53 Dipsyhu 阅读(618) 评论(0) 推荐(0) 编辑