Qt 多线程使用串口源码下载

时间:2024-01-16 05:02:10
【文件属性】:

文件名称:Qt 多线程使用串口源码下载

文件大小:7KB

文件格式:ZIP

更新时间:2024-01-16 05:02:10

Qt QSerialPort 多线程

本资源为教程: https://tangxing.blog.csdn.net/article/details/111721947 配套资源,讲解在子线程中使用串口。


【文件预览】:
Qt_MultiThread_SerialPort
----mainwindow.ui(7KB)
----mainwindow.cpp(7KB)
----main.cpp(183B)
----Qt_MultiThread_SerialPort.pro(1KB)
----serialworker.cpp(769B)
----mainwindow.h(946B)
----serialworker.h(455B)

网友评论

  • 这个源码在windows下模拟串口测试,可以发送数据,但无法接收数据
  • 有这个警告QObject: Cannot create children for a parent that is in a different thread. (Parent is QSerialPort(0x82fd38), parent's thread is QThread(0x917720), current thread is QThread(0x82fd50)