QT Qwt配置和使用

  • Qwt介绍
  • 下载地址
  • 配置方法
    • 下载后解压如下
    • 打开项目编译
    • 配置
      • qt designer
      • 新建项目

Qwt介绍

QWT, Qt Widgets for Technical Applications,是一个基于LGPL版权协议的开源项目,可生成各种统计图。它为具有技术专业背景的程序提供GUI组件和一组实用类,其目标是以基于2D方式的窗体部件来显示数据,数据源以数值,数组或一组浮点数等方式提供, 输出方式可以是Curves(曲线),Slider(滚动条),Dials(圆盘),Compasses(仪表盘)等等。该工具库基于Qt开发,所以也继承了Qt的跨平台特性。

下载地址

稳定版下载地址:http://sourceforge.net/projects/qwt/files/qwt/

配置方法

下载后解压如下

designer文件夹: qwt插件的源码,用于生成Qt Designer插件,插件可以在Qt Designer中直接拖拽使用
doc文件夹:帮助文档
examples文件夹: qwt的示例(源码、可执行程序), 这些工程的生成需要src或designer目录下工程生成的qwt.lib/qwt.dll
src文件夹: qwt的源码
textengines目录:存放数学指标语言的文本驱动引擎代码
pro等工程文件等。

打开项目编译


配置

qt designer

将D:\QT_project\build\build-qwt-Desktop_Qt_5_12_7_MinGW_64_bit-Release\designer\plugins\designer下的qwt_designer_plugin.dll复制到D:\Qt\Qt5.12.3\5.12.3\mingw73_32\plugins\designer下。

打开 qt designer,可编辑控件:

新建项目

  1. 项目路径下建Qwt 文件夹:
include 中为 D:\QT_project\qwt-6.1.4\src 目录下的所有.h文件;
.a .dll 文件为 D:\QT_project\build\build-qwt-Desktop_Qt_5_12_7_MinGW_64_bit-Release\lib 编译出的文件;
.pri 文件为 D:\QT_project\qwt-6.1.4  目录下文件;
  1. 配置项目
QT       += core gui  opengl
#QT +=    opengl#include ( ${PWD}/../Qwt/qwt.prf )DESTDIR     = $$PWD/Qwt
#一次性引入自定义控件的所有头文件 懒得一个个拷贝
INCLUDEPATH += $$PWD/Qwt/include#不同的构建套件 debug release 依赖不同的链接库
CONFIG(debug, debug|release){LIBS += -L$$PWD/Qwt/ -l qwtd
} else {LIBS += -L$$PWD/Qwt/ -l qwt
}#DISTFILES += \
#    Qwt/libqwt.a \
#    Qwt/libqwtd.a \
#    Qwt/qwt.dll \
#    Qwt/qwtd.dllgreaterThan(QT_MAJOR_VERSION, 4): QT += widgetsCONFIG += c++11# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0SOURCES += \main.cpp \mainwindow.cppHEADERS += \Qwt/include/qwt_widget_overlay.h \Qwt/include/qwt.h \Qwt/include/qwt_abstract_legend.h \Qwt/include/qwt_abstract_scale.h \Qwt/include/qwt_abstract_scale_draw.h \Qwt/include/qwt_abstract_slider.h \Qwt/include/qwt_analog_clock.h \Qwt/include/qwt_arrow_button.h \Qwt/include/qwt_clipper.h \Qwt/include/qwt_color_map.h \Qwt/include/qwt_column_symbol.h \Qwt/include/qwt_compass.h \Qwt/include/qwt_compass_rose.h \Qwt/include/qwt_compat.h \Qwt/include/qwt_counter.h \Qwt/include/qwt_curve_fitter.h \Qwt/include/qwt_date.h \Qwt/include/qwt_date_scale_draw.h \Qwt/include/qwt_date_scale_engine.h \Qwt/include/qwt_dial.h \Qwt/include/qwt_dial_needle.h \Qwt/include/qwt_dyngrid_layout.h \Qwt/include/qwt_event_pattern.h \Qwt/include/qwt_global.h \Qwt/include/qwt_graphic.h \Qwt/include/qwt_interval.h \Qwt/include/qwt_interval_symbol.h \Qwt/include/qwt_knob.h \Qwt/include/qwt_legend.h \Qwt/include/qwt_legend_data.h \Qwt/include/qwt_legend_label.h \Qwt/include/qwt_magnifier.h \Qwt/include/qwt_math.h \Qwt/include/qwt_matrix_raster_data.h \Qwt/include/qwt_null_paintdevice.h \Qwt/include/qwt_painter.h \Qwt/include/qwt_painter_command.h \Qwt/include/qwt_panner.h \Qwt/include/qwt_picker.h \Qwt/include/qwt_picker_machine.h \Qwt/include/qwt_pixel_matrix.h \Qwt/include/qwt_plot.h \Qwt/include/qwt_plot_abstract_barchart.h \Qwt/include/qwt_plot_barchart.h \Qwt/include/qwt_plot_canvas.h \Qwt/include/qwt_plot_curve.h \Qwt/include/qwt_plot_dict.h \Qwt/include/qwt_plot_directpainter.h \Qwt/include/qwt_plot_glcanvas.h \Qwt/include/qwt_plot_grid.h \Qwt/include/qwt_plot_histogram.h \Qwt/include/qwt_plot_intervalcurve.h \Qwt/include/qwt_plot_item.h \Qwt/include/qwt_plot_layout.h \Qwt/include/qwt_plot_legenditem.h \Qwt/include/qwt_plot_magnifier.h \Qwt/include/qwt_plot_marker.h \Qwt/include/qwt_plot_multi_barchart.h \Qwt/include/qwt_plot_panner.h \Qwt/include/qwt_plot_picker.h \Qwt/include/qwt_plot_rasteritem.h \Qwt/include/qwt_plot_renderer.h \Qwt/include/qwt_plot_rescaler.h \Qwt/include/qwt_plot_scaleitem.h \Qwt/include/qwt_plot_seriesitem.h \Qwt/include/qwt_plot_shapeitem.h \Qwt/include/qwt_plot_spectrocurve.h \Qwt/include/qwt_plot_spectrogram.h \Qwt/include/qwt_plot_svgitem.h \Qwt/include/qwt_plot_textlabel.h \Qwt/include/qwt_plot_tradingcurve.h \Qwt/include/qwt_plot_zoneitem.h \Qwt/include/qwt_plot_zoomer.h \Qwt/include/qwt_point_3d.h \Qwt/include/qwt_point_data.h \Qwt/include/qwt_point_mapper.h \Qwt/include/qwt_point_polar.h \Qwt/include/qwt_raster_data.h \Qwt/include/qwt_round_scale_draw.h \Qwt/include/qwt_samples.h \Qwt/include/qwt_sampling_thread.h \Qwt/include/qwt_scale_div.h \Qwt/include/qwt_scale_draw.h \Qwt/include/qwt_scale_engine.h \Qwt/include/qwt_scale_map.h \Qwt/include/qwt_scale_widget.h \Qwt/include/qwt_series_data.h \Qwt/include/qwt_series_store.h \Qwt/include/qwt_slider.h \Qwt/include/qwt_spline.h \Qwt/include/qwt_symbol.h \Qwt/include/qwt_system_clock.h \Qwt/include/qwt_text.h \Qwt/include/qwt_text_engine.h \Qwt/include/qwt_text_label.h \Qwt/include/qwt_thermo.h \Qwt/include/qwt_transform.h \Qwt/include/qwt_wheel.h \mainwindow.h \FORMS += \mainwindow.uiTRANSLATIONS += \oscilloscope_en_AI.ts# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
  1. 编译结果

QT Qwt配置和使用相关推荐

  1. Qt Creator配置编辑器

    Qt Creator配置编辑器 配置编辑器 相关话题 配置编辑器 Qt Creator允许您配置文本编辑器以满足您的特定需求.要配置编辑器,请选择工具>选项>文本编辑器. 这些设置适用于所 ...

  2. Qt Creator配置项目

    Qt Creator配置项目 配置项目 项目激活套件 指定设定 配置项目 当您为目标平台(例如Android或QNX)安装Qt时,可能会在Qt Creator中自动设置开发目标的构建和运行设置. 首次 ...

  3. QT环境配置:QT5.8.0与VS2013环境配置

    QT环境配置:QT5.8.0与VS2013环境配置 1.下载VS2013,QT5.8.0,qt-vs-tools-msvc2013-2.1.1. 1)VS2013版本为:Visual Studio U ...

  4. pycharm设置-使用Qt Designer配置

    pycharm设置-使用Qt Designer配置 针对在pycharm中配置后方便直接调用Qt 设计UI界面 步骤如下: 1.打开pytcharm 界面 - 文件 - 设置 - 工具- 外部工具 2 ...

  5. 基于阿里云服务器的Qt SDK配置

    目录 1.Mysql配置 1.1安装Mysql服务器和客户端 1.2配置Mysql编码格式 1.3重启Mysql 1.4登陆Mysql 1.5查看Mysql编码 1.6安装Mysqlclient驱动 ...

  6. Ubuntu+Qt下配置车牌识别系统EasyPR1.6环境

    1.将EasyPR_v1.6.zip拷贝到虚拟机Ubuntu中 最好是在opt文件夹中 ,可使用 VMware tools 共享文件夹 远程连接工具 2.解压得到EasyPR文件夹 修改文件权限 ch ...

  7. QT下配置Boost库

    QT下配置Boost库 前言 当使用别人的QT工程,复制到自己机器上,发现报如下错误 从QtCreator报错来看是找不到Boost相关文件和库 问题解决 首先去官网下载Boost库 编译boost库 ...

  8. QT - QT中配置MSVC编译环境 以及 VS中配置QT开发环境

    本文主要记录一下如何在 QT5.14.2 中配置 MSVC2017 构建套件,以及在VS2017中配置QT的开发环境.开发环境为 Win10 +  QT5.14.2 + Visual Studio 2 ...

  9. Qt Creator配置MSVC编译器

    Qt Creator配置MSVC编译器 配置: WINDOWS 7系统 4.9.0 Qt Creator MSVC 2017 VS 2017 步骤: VS官网下载Visual Studio Commu ...

最新文章

  1. 美团分布式ID生成服务LeafCode
  2. anroid 图片处理加载对比(image loader,Picasso ,glide,fresco)
  3. 差分放大电路差模共模公式_选择正确的放大器
  4. C# 8 - Range 和 Index(范围和索引)
  5. Material Design入门(二)
  6. golang 模板 tpl 算术运算_高考数学常设的32个命题陷阱,七成同学中招失分!文末附数学疑难题(精品)模板!...
  7. python将mongodb导出_使用python从mongodb将数据导出到csv
  8. 用java语言求前50个素数_Java求质数的几种常用算法总结
  9. python自动排版公众号_GitHub - sunshine2337/maxpress: MaxPress:MarkDown+Python实现微信公众号一键排版...
  10. 灯神动态规划(Dynamic Programing)学习笔记 打劫问题 凑整问题 背包问题 例题+原理+源码超详细讲解
  11. 日期对象(Date)操作 getMonth()方法
  12. 程序员的自我修养读书笔记-1
  13. wpsppt页面卷曲在哪里_2013版ppt怎么制作页面卷曲动画效果
  14. win10自启动方法
  15. Arduino智能小车设计(七)
  16. 项目经验之:针对昨日FDO连接SDF文件报错,国外GIS论坛给出了一个思路.帮助我过关.
  17. F#基础教程 定义mutable记录类型
  18. 如何在工作中提升自己的学习能力
  19. 关于Java虚拟机(Java Virtual Machine 简称JVM) 笔记
  20. [11.7日学习记录]多目标优化和帕累托最优解集(未完成)

热门文章

  1. HJ61放苹果c++
  2. H5游戏引擎Layabox融资成功,A轮进帐1亿!
  3. 百度搜索打击盗版网文站点
  4. 自组织的网游金融体系
  5. @Inject与InjectionToken的使用
  6. idea中Field injection is not recommended提示
  7. Python 探究类的继承的使用
  8. 法语初级学习笔记-03-疑问句
  9. vue router返回到指定的路由
  10. matlab sinc反函数,三角函数记忆顺口溜记忆的方法和技巧