说明
使用 绘图库辅助开发时整理的学习笔记。同系列文章目录可见 《绘图库 qcustomplot 学习笔记》目录。本篇介绍 qcustomplot 的下载。
目录
说明
1. 下载链接
2. qcustomplot.tar.gz 压缩包概览
3. qcustomplot-sharedlib.tar.gz 压缩包概览
4. qcustomplot-source.tar.gz 压缩包概览
1. 下载链接
凯发真人娱乐官网为每个版本都提供了三种压缩包下载:
qcustomplot.tar.gz(完整版本):压缩包中包含源码、帮助文档、示例工程。
qcustomplot-sharedlib.tar.gz(动态库版本):压缩包中包含编译动态库的 pro 文件、使用动态库的 pro 文件。
qcustomplot-source.tar.gz(仅源码版本):压缩包中只包含源码。
下载指南:
如果对 qcustomplot 的用法不了解,最佳选择是下载 qcustomplot.tar.gz 压缩包,里面不仅有源码,还包含帮助文档以及示例工程。
如果需要以动态库的形式使用 qcustomplot 绘图库,则应下载 qcustomplot-sharedlib.tar.gz 以及 qcustomplot-source.tar.gz 两个压缩包,下载后,在自己电脑上编译出动态库,供进一步使用。
如果有使用基础,仅下载 qcustomplot-source.tar.gz 压缩包就够了。
凯发真人娱乐官网下载地址:qcustomplot - download。
网络资源:百度网盘 - qcustomplot。
2. qcustomplot.tar.gz 压缩包概览
以 version 2.1.1
为例,这个压缩包的目录概览如下:
qcustomplot.tar.gz
│ changelog.txt
│ gpl.txt
│ qcustomplot.cpp
│ qcustomplot.h
│
├─documentation
│ │ qcustomplot.qch
│ │
│ └─html
│ adaptive-sampling-line.png
│ ...
│ classes.html
│ ...
│
└─examples
├─axis-tags
│ axis-tags-example.pro
│ ...
│
├─interactions
│ interaction-example.pro
│ ...
│
├─plots
│ plot-examples.pro
│ ...
│
├─scrollbar-axis-range-control
│ scrollbar-axis-range-control.pro
│ ...
│
└─text-document-integration
text-document-integration.pro
...
外部的 changelog.txt
、gpl.txt
、qcustomplot.cpp
、qcustomplot.h
这四个文件与 qcustomplot-source.tar.gz 压缩包中的文件一样,分别为更新日志、开源许可、源码。
documentation
文件夹下存有 qch
版的帮助文档(用于集成进 qt 环境)以及 html
版的帮助文档(与 在线帮助文档 排版一样)。
examples
文件夹下是一些示例工程,可用 qtcreator 打开后再编译运行,这些示例工程被用来示范怎么使用 qcustomplot。
3. qcustomplot-sharedlib.tar.gz 压缩包概览
以 version 2.1.1
为例,这个压缩包的目录结构如下:
qcustomplot-sharedlib.tar.gz
│ readme.txt
│
├─sharedlib-compilation
│ sharedlib-compilation.pro
│
└─sharedlib-usage
main.cpp
sharedlib-usage.pro
readme.txt
是一份使用说明,里面写了如何根据压缩包中的 pro 文件编译出 qcustomplot 动态库,以及如何使用编译出的动态库。
sharedlib-compilation
文件夹下只有一个 sharedlib-compilation.pro
工程文件,将它与 qcustomplot.h/.cpp
相结合可以编译出动态库。
sharedlib-usage
文件夹下只有 main.cpp
与 sharedlib-usage.pro
两个文件,用来演示如何使用上述编译出的动态库。
4. qcustomplot-source.tar.gz 压缩包概览
以 version 2.1.1
为例,这个压缩包的目录结构如下:
qcustomplot-source.tar.gz
changelog.txt
gpl.txt
qcustomplot.cpp
qcustomplot.h
有 4
个文件,changelog.txt
为更新日志,gpl.txt
为开源许可,qcustomplot.cpp
与 qcustomplot.h
为正常使用时需包含的源码文件。