O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing QtCharts

As already hinted, Qt provides an easy way to incorporate several kinds of charts by means of the QtCharts module (https://doc.qt.io/qt-5.9/qtcharts-index.html). A very good overview about available chart types and basic API usage is available at https://doc.qt.io/qt-5.9/qtcharts-overview.html. Some of the available data series representations include Line Series, Area Series, Bar Series, Pie Series, BoxPlot Series, and Candlestick Series. All of these need to be added to a ChartView (QChartView) object, which also handles the axes, titles, and legends. A specialized chart view exists for Polar charts, PolarChartView (QPolarChart).

Originally available only through a C++ API, the module is now also accessible from QML ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required