Search code examples
c++qt2d

2D plotting library with LGPL


What would be the most appropriate choice to plot simple 2D charts in a Qt application (C++), given a set of points with some basic capability of interacting with the plot (zoom, pan, picking)?

Similar to Qt Charts but with a LGPL License

enter image description here


Solution

  • There are these LGPL options I know off:

    • Qwt, as mentioned by the other poster
    • KDChart (MIT)
    • Embedded a HTML page into your Qt application with Qt WebEngine and then use a HTML charting library like D3. Due to the heavier performance requirements of HTML/JS, this is not an option if you target low-end devices, otherwise it should work fine. You can export data needed by the charts from C++ to JS with Qt WebChannel.

    There are also some options that are dual-licensed with a commercial license and GPL, which for a closed source project usually means you have to buy a license: