error: 'QtSerialPort' file not found #include 解决方法?

我们在使用QT编写串口软件时,会用到serialport的类,
在头文件添加#include <QtSerialPort>,出现error: 'QtSerialPort' file not found,

此时,我们解决方法是将

#include <QtSerialPort>
改为
#include <QtSerialPort/QSerialPort>

问题解决。

发布了16 篇原创文章 · 获赞 15 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_40318907/article/details/99073353