问题: qt中使用QSerialPort时报错“error: undefined reference to `QSerialPort::QSerialPort(” 解决办法: 工程文件*.pro里增加: QT += serialport