使用QCustomPlot遇到的问题及解决1
来源:互联网 发布:怎么知道我的网络 编辑:程序博客网 时间:2024/06/06 05:04
最近工作需要,产品界面中需要用到显示实时波形,于是使用了QCustomPlot类库。这里写一下遇到的问题和解决。
E:\HH-PM001\build-detecter-Desktop_Qt_5_8_0_MinGW_32bit-Debug\debug\qcustomplot.o:-1: In function `ZN11QCustomPlot7savePdfERK7QStringiiN3QCP9ExportPenES2_S2_':
E:\HH-PM001\trunk\QCustomPlot\qcustomplot.cpp:14244: error: undefined reference to `_imp___ZN8QPrinterC1ENS_11PrinterModeE'
E:\HH-PM001\trunk\QCustomPlot\qcustomplot.cpp:14246: error: undefined reference to `_imp___ZN8QPrinter15setOutputFormatENS_12OutputFormatE'
E:\HH-PM001\trunk\QCustomPlot\qcustomplot.cpp:14247: error: undefined reference to `_imp___ZN8QPrinter12setColorModeENS_9ColorModeE'
E:\HH-PM001\trunk\QCustomPlot\qcustomplot.cpp:14248: error: undefined reference to `_imp___ZNK8QPrinter11printEngineEv'
E:\HH-PM001\trunk\QCustomPlot\qcustomplot.cpp:14249: error: undefined reference to `_imp___ZNK8QPrinter11printEngineEv'
E:\HH-PM001\trunk\QCustomPlot\qcustomplot.cpp:14244: error: undefined reference to `_imp___ZN8QPrinterD1Ev'
E:\HH-PM001\trunk\QCustomPlot\qcustomplot.cpp:14244: error: undefined reference to `_imp___ZN8QPrinterD1Ev'
collect2.exe:-1: error: error: ld returned 1 exit status
认真看了一下,原来我忘记在工程文件.pro文件中添加下面的语句了。
QT += printsupport
添加后,一切正常,因为qcustomplot.cpp中使用到了打印功能,所以这个是需要添加的。
- 使用QCustomPlot遇到的问题及解决1
- 使用RecyclerView遇到的问题及解决
- QCustomPlot的使用 - 1安装
- Spring发送电子邮件使用Gmail遇到的问题及解决
- 使用MPLAB遇到的问题及解决笔记
- 使用squid建立反向代理及遇到问题的解决
- php使用DomPDF时遇到的问题及解决…
- 使用Android Studio遇到的问题及解决过程
- 使用Android Studio遇到的问题及解决过程
- 使用Android Studio遇到的问题及解决过程
- swift实际使用中遇到的问题及解决
- swift实际使用中遇到的问题及解决(2)
- swift实际使用中遇到的问题及解决(3)
- 使用Android Studio遇到的问题及解决过程
- 使用阿里云旺遇到的问题及解决
- Android使用自定义控件遇到的问题及解决
- adb命令和使用adb遇到的问题及解决
- Glide使用中遇到的问题及解决
- 作业
- LUA 表结构的使用
- lua函数返回多个值
- 排序--快排
- C 预处理器
- 使用QCustomPlot遇到的问题及解决1
- LRUCache
- curl命令
- 剑指Offe [06] 旋转数组的最小数字
- (GitHub)为自己的Repository设置默认tabsize
- 运算符重载
- vi/vim多行注释和取消注释
- 1.数据库创建一个主子表
- 修饰符(public、private、static、final)简单理解