Qt5.12.3 编译 QWT 6.1.4


Warning: Undefined variable $v in E:\home\LocalUser\424681\www\blog\wordpress\wp-content\plugins\wp-content-index\wp-content-index.php on line 357
目录 Content
[hide]

一、介绍

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 版本:

参考

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.