QWT — Qt Plotting Library¶
QWT (Qt Widgets for Technical Applications) is a 2D/3D plotting library built on Qt, intended for data visualization in scientific computing and engineering.
Qwt in the Qt plotting ecosystem¶
There are only a handful of plotting libraries in the Qt ecosystem. The mainstream options are QCustomPlot, Qwt, Qt Charts, and KDChart. After Qt 6.8, the former Qt Charts (2D) and Qt DataVisualization (3D) were merged into a unified Qt Graphs module built entirely on Qt Quick Scene Graph + Qt Quick 3D, abandoning the legacy Graphics-View / QPainter pipeline. However, Qt Graphs must be embedded via QQuickWidget or QQuickWindow, requires the QML runtime, has limited C++ support, and drops support for older systems like Windows 7.
| Library | License | Strengths | Weaknesses |
|---|---|---|---|
| QCustomPlot | GPL | Simple API, widely used | GPL requires opening the application source |
| Qwt | LGPL | Fast rendering, clean architecture | Original author stopped maintaining; deployment was difficult |
| Qt Charts | GPL | Official Qt module | Low rendering performance; GPL |
| KDChart | MIT (3.0+) | Commercial-friendly license | Limited rendering quality |
This project is based on Qwt 6.2.0. It keeps the original architecture and adds CMake support, Qt 6 compatibility, single-file inclusion, 3D plotting, large-data rendering and other fixes.
Qwt 7.0 New Features¶
- CMake support:
find_package(qwt)in one line - Qt 6 support, compatible with Qt 5.12+ and Qt 6.x
- Single-file inclusion: add
QwtPlot.handQwtPlot.cppto the project - Flat visual style, replacing the legacy embossed look
- Figure container for matplotlib-style multi-plot layouts
- Parasite axes, with no fixed limit on the number of axes
- Mouse drag and wheel zoom on axes
- Built-in 3D plotting module
- C++11 throughout:
override,nullptr, smart pointers, range-based for loops - 4 curve downsampling algorithms plus SIMD acceleration
- Color cycle that assigns colors to series automatically
QwtPlotBoxChartfor statistical distributions- Flat styling for sliders, knobs, dials and other controls
Quick Integration¶
With CMake (recommended):
1 2 3 4 | |
With the single-file amalgamation:
1 2 3 4 5 | |
Project Links¶
- GitHub: https://github.com/czyt1988/QWT
- Gitee: https://gitee.com/czyt1988/QWT
- Documentation: https://czyt1988.github.io/QWT/
Showcase¶
Basic Charts¶
-

examples/2D/figure -

examples/2D/figureGrid -

examples/2D/simpleplot -

examples/2D/barchart -

examples/2D/scatterplot -

examples/2D/curvedemo -

examples/2D/boxchart
Real-Time Visualization¶
-

examples/2D/cpuplot -

examples/2D/realtime -

examples/2D/oscilloscope -

examples/2D/radio -

examples/2D/sysinfo -

examples/2D/animation
Advanced Charts¶
-

examples/2D/spectrogram -

playground/vectorfield -

examples/2D/stockchart -

examples/2D/polardemo -

examples/2D/parasitePlot -

examples/2D/bode -

playground/shapes -

playground/scaleengine -

examples/2D/pyplot
More Examples¶
-

examples/2D/distrowatch -

examples/2D/friedberg -

examples/2D/friedberg -

examples/2D/itemeditor -

examples/2D/rasterview -

examples/2D/rasterview -

examples/2D/refreshtest -

examples/2D/splineeditor -

examples/2D/tvplot -

playground/curvetracker -

playground/graphicscale -

playground/plotmatrix -

playground/rescaler -

playground/svgmap -

playground/timescale
Interactive Demos¶
-

Axis Dragging -

Axis Zooming -

Figure Overlay -

Data Picker
License¶
Qwt is published under the Qwt License, Version 1.0. The full copyright notice is reproduced below:
1 2 3 4 5 | |