06 2023 档案

Qt 实现版本号比较
摘要:开发环境:Qt5.12.2 + QtCreator4.8.2 实现功能:版本号比较 示例代码:QVersionNumber #include <QDebug> #include <QVersionNumber> int main() { QString version1 = "V01.00.0030 阅读全文

posted @ 2023-06-29 14:12 掌控命运 阅读(124) 评论(0) 推荐(0) 编辑

Qt QString 转换 Html 实体
摘要:开发环境:Qt5.12.2 + QtCreator 1、问题背景: 读取日志在 QTextBrowser 显示中使用 HTML 设置显示颜色,如果日志内容中存在 HTML 相关关键字符,会导致显示异常 2、问题显示: ui->textBrowser_LogText->append("<font co 阅读全文

posted @ 2023-06-28 09:50 掌控命运 阅读(83) 评论(0) 推荐(0) 编辑

QSerialport readyRead 信号偶发不响应问题
摘要:开发环境:QtCreator4.8.2 + Qt5.12.2 1、操作方式 独立线程 控制串口对象读写 1)写操作: write + waitForBytesWritten; 2)读操作:readyRead + bytesAvailable + readAll 2、问题现象 偶发 readyRead 阅读全文

posted @ 2023-06-22 16:05 掌控命运 阅读(572) 评论(0) 推荐(0) 编辑

Qt 信号和槽出现重载的处理方法
摘要:QtCreator + Qt5.12.2 1 /* 重载信号需要注明 */ 2 connect(ui->comboBox_Mode, QOverload<int>::of(&QComboBox::currentIndexChanged), 3 this, [this](int index) 4 { 阅读全文

posted @ 2023-06-10 16:31 掌控命运 阅读(93) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示