1.报错 'setCodecForTr' is not a member of 'QTextCodec' 是因为Qt5没有这个类了,要注释掉。
2.报错 error: 'class QString' has no member named 'toAscii' 可将toAscii 替换为 toLatin1
3.QT中有串口的程序,在 F:\Qt\Examples\Qt-5.10.0\serialport\terminal 中。
1.报错 'setCodecForTr' is not a member of 'QTextCodec' 是因为Qt5没有这个类了,要注释掉。
2.报错 error: 'class QString' has no member named 'toAscii' 可将toAscii 替换为 toLatin1
3.QT中有串口的程序,在 F:\Qt\Examples\Qt-5.10.0\serialport\terminal 中。