QCustomplot报错: error: LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall QPrinter::QPrinter(enum QPrinter::PrinterMode)"

添加QCustomplot报错:

 

QPrinter@@QAE@W4PrinterMode@0@@Z),函数 "public: bool __thiscall QCustomPlot::savePdf(class QString const &,int,int,enum QCP::ExportPen,class QString const &,class QString const &)" (?savePdf@QCustomPlot@@QAE_NABVQString@@HHW4ExportPen@QCP@@00@Z) 中引用了该符号

 

解决:

添加 printsupport 库

QT       += core gui serialport printsupport

 
posted @ 2024-07-13 16:21  hxqmw  阅读(367)  评论(0)    收藏  举报