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
![]()
 
 
                    
                

 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号