QT报错

dialogsetting.h:17:5: error: division by zero in preprocessor expression
qglobal.h:86:30: note: expanded from macro 'QT_CONFIG'

包含头文件名:

#include <QtSerialBus/qtserialbusglobal.h>
dialogsetting.h:8:10: error: 'QSerialPort' file not found

pro文件添加:
QT += serialbus widgets
requires(qtConfig(combobox))

qtConfig(modbus-serialport): QT += serialport


 

posted @ 2023-01-04 21:16  txwtech  阅读(162)  评论(0编辑  收藏  举报