Qt Charts C++ Classes

C++ classes for the Qt Charts API. More...

Classes

QAbstractAxis

Used for manipulating chart's axis

QAbstractBarSeries

Series for creating a bar chart

QAbstractSeries

Base class for all Qt Chart series

QAreaLegendMarker

QLegendMarker subclass for area series

QAreaSeries

Used for making area charts

QBarCategoryAxis

Used for manipulating chart's axis

QBarLegendMarker

QLegendMarker subclass for bar series

QBarSeries

Series for creating bar chart

QBarSet

Building block for different bar charts

QBoxPlotLegendMarker

QLegendMarker subclass for box plot series

QBoxPlotSeries

Series for creating box-and-whiskers chart

QBoxSet

Building block for box-and-whiskers chart

QCategoryAxis

Allows putting a named ranges on the axis

QChart

Main chart API for Qt Charts

QChartView

Standalone charting widget

QDateTimeAxis

Used for manipulating chart's axis

QHBarModelMapper

Horizontal model mapper for bar series

QHPieModelMapper

Horizontal model mapper for pie series

QHXYModelMapper

Horizontal model mapper for QXYSeries

QHorizontalBarSeries

Series for creating horizontal bar chart

QHorizontalPercentBarSeries

Series for creating horizontal percent bar chart

QHorizontalStackedBarSeries

Series for creating horizontal stacked bar chart

QLegend

Legend object

QLegendMarker

LegendMarker object

QLineSeries

Used for making line charts

QLogValueAxis

Used for manipulating chart's axis

QPercentBarSeries

Series for creating percent bar chart

QPieLegendMarker

QLegendMarker subclass for pie series

QPieSeries

Pie series API for Qt Charts

QPieSlice

Defines a slice in pie series

QPolarChart

Polar chart API for Qt Charts

QScatterSeries

Used for making scatter charts

QSplineSeries

Series type used to store data needed to draw a spline

QStackedBarSeries

Series for creating stacked bar chart

QVBarModelMapper

Vertical model mapper for bar series

QVBoxPlotModelMapper

Vertical model mapper for box plot series

QVPieModelMapper

Vertical model mapper for pie series

QVXYModelMapper

Vertical model mapper for QXYSeries

QValueAxis

Used for manipulating chart's axis

QXYLegendMarker

QLegendMarker subclass for QXYSeries

QXYSeries

Base class for line, spline and scatter series

Detailed Description

Charts API is built on top of Qt Graphics View Framework. Charts can be displayed as QGraphicsWidget using the QChart class. However there is also the convenience class QChartView, which is QWidget based. These enable us to quickly use Qt Charts as a normal Qt widget.

Each chart type is represented by the QAbstractSeries derived class. To create charts, the users have to use an instance of the related series class and add it to a QChart instance.


  QLineSeries* series = new QLineSeries();
  series->add(0, 6);
  series->add(2, 4);
  ...
  chartView->chart()->addSeries(series);
  chartView->chart()->createDefaultAxes();