一、介绍
QWT 是一个 Qt 图形控件库
- https://qwt.sourceforge.io/index.html
提供以下控件:
- 2D绘图(2D plots)
- 刻度(scales)
- 滑块(sliders)
- 刻度盘(dials)
- 指南针(compasses)
- 温度计(thermometers)
- 滚轮(wheels)
- 和旋钮(knobs)
二、源码
- https://sourceforge.net/projects/qwt/
目前最新源码是 6.1.4 (2019-01-02)
三、编译
解压后,直接打开 qwt.pro 进行编译。
注意提示信息
Project MESSAGE: debug_and_release: building the Qwt designer plugin in release mode only [Inexact] Project MESSAGE: The qwtmathml library contains code of the MML Widget from the Qt solutions package. [Inexact] Project MESSAGE: Beside the Qwt license you also have to take care of its license. Project MESSAGE: The qwtmathml library contains code of the MML Widget from the Qt solutions package. Project MESSAGE: Beside the Qwt license you also have to take care of its license.
四、集成
参照前文
创建一个 .pro 文件供调用,在 pri 文件里设置好 Qt 环境
win32{ INCLUDEPATH += $$(QTDIR)/include/QWT/ LIBS += -L$$(QTDIR)/lib/ CONFIG(debug,debug|release) { LIBS += -lqwtd } else { LIBS += -lqwt } }
使用时,只需要 include 这个文件
include("d:\Technology\Qt\Qt PlugIn\QWT\build_qwt-6.1.4_Qt5.12.3_msvc2015_64\qwt.pri")
五、预编译
预编译 Qt5.12.3_msvc2015_64 版本:
参考
- http://blog.sina.com.cn/s/blog_a6fb6cc90102v25w.html
- https://blog.csdn.net/owen_lang/article/details/49925531
- https://zhuanlan.zhihu.com/p/36606631
- 有没有人装逼正好撞到你擅长的领域上的?
https://www.zhihu.com/question/338688699/answer/909589299
vector转list是O(n)的。不用管缓存这些东西,你toList().at(i)把O(1)变成了O(n)h还能指望有性能么