Qt中使用QSerialPort和QCustomPlot需注意: 1.使用QCustomPlot要: ①先添加QCustomPlot.cpp和QCustomPlot.h ②在.pro文件中添加QT += printsupport 2.使用QSerialPort要: 在.pro文件中添加QT += serialport