Qt用QCustomplot类编译一堆error:undefined reference to `_imp___ZN8QPrinterC1ENS_11PrinterModeE'—工程设置可能有问题
引用qcustomplot,在编译的时候报了一堆这样的错误:undefined reference to `_imp___ZN8QPrinter C1ENS_11PrinterModeE', undefined reference to `_imp___ZN8QPrinter17setOutputFileNameERK7QString' ...
解决方法:更改工程配置
修改 / 添加.pro文件相关行如下:
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
QCustomplot
这个功能很强 画曲线图折线图柱状图动态静态 放大缩小 都很好用 10w条数据量无压力 秒画出来 一点也不卡
使用 qcustomplot.h 和 qcustomplot.cpp!!!pro 文件里面 一定写入 QT+= printsupport!!!
参考链接
https://blog.csdn.net/weixin_42837024/article/details/88669351