实现
示例路径:D:\QT\qt\5.15.2\msvc2019\include\QtSerialPort
修改路径下qserialport.h
文件中的内容:
...
enum BaudRate {
Baud1200 = 1200,
Baud2400 = 2400,
Baud4800 = 4800,
Baud9600 = 9600,
Baud19200 = 19200,
Baud38400 = 38400,
Baud57600 = 57600,
Baud115200 = 115200,
+ Baud256000 = 256000,
UnknownBaud = -1
};
...
使用即可