Hi Richard, If you target QGIS 3, you might also go with a plain QML approach which is available as of Qt 5.3 which should be available on any distro where QGIS 3 is shipped.
http://doc.qt.io/qt-5/qquickwidget.html#details QtCharts is built on the same foundation, so you can get to the same results. It just needs a bit more boilerplate code. Matthias On 5/9/17 1:31 PM, G. Allegri wrote: > I agree that (Py)QtChart is the way to go. Recently I did some proof > of concepts starting from this simple > example: > https://github.com/PierreRaybaut/plotpy/wiki/Using-Qt-Charts-(PyQtChart)-to-plot-curves-efficiently-in-Python > <https://github.com/PierreRaybaut/plotpy/wiki/Using-Qt-Charts-%28PyQtChart%29-to-plot-curves-efficiently-in-Python>! > > > giovanni > > Il 9 mag 2017 12:52, "Richard Duivenvoorde" <[email protected] > <mailto:[email protected]>> ha scritto: > > On 09-05-17 12:44, Martin Dobias wrote: > > Hi Richard > > > > On Mon, May 8, 2017 at 10:47 PM, Richard Duivenvoorde > > <[email protected] <mailto:[email protected]>> wrote: > >> > >> Do 'we' (as the community) have a stand in this? > >> Is one option more future proof (for QGIS) then others? > > > > Aprart from the libraries mentioned above, I believe for a future > > proof code (QGIS >= 3) the choice should be the Qt Charts > library. It > > used to be distributed separately under commercial license, but > since > > Qt 5.8 (IIRC) it is included in standard Qt5 distribution with open > > source license. This library has the advantage of being native > to the > > Qt ecosystem and it seems to be quite powerful as well. > > > Thanks all for the libs and tips :-) > > @Martin: I will have a look at Qt-graph, I think it is best to keep > close to our core libs. But not sure if it will soon be available in > repo's/distro's including the python bindings. > > Besides this I'm doing this as part of a larger QGIS 2.x plugin, > so will > eventually probably have to use both ways. > > Regards, > > Richard Duivenvoorde > > _______________________________________________ > QGIS-Developer mailing list > [email protected] <mailto:[email protected]> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > Unsubscribe: > https://lists.osgeo.org/mailman/listinfo/qgis-developer > <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > > > > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
