Qt Charts C++ Classes
C++ classes for the Qt Charts API. More...
Classes
Used for making area charts | |
Used for manipulating chart's axis | |
Allows putting a named ranges on the axis | |
Used for manipulating chart's axis | |
Used for manipulating chart's axis | |
Used for manipulating chart's axis | |
Used for manipulating chart's axis | |
Series for creating horizontal bar chart | |
Series for creating horizontal percent bar chart | |
Series for creating horizontal stacked bar chart | |
Series for creating a bar chart | |
Building block for different bar charts | |
Horizontal model mapper for bar series | |
Vertical model mapper for bar series | |
Series for creating bar chart | |
Series for creating percent bar chart | |
Series for creating stacked bar chart | |
Series for creating box-and-whiskers chart | |
Building block for box-and-whiskers chart | |
Vertical model mapper for box plot series | |
QLegendMarker subclass for area series | |
QLegendMarker subclass for bar series | |
QLegendMarker subclass for box plot series | |
Legend object | |
LegendMarker object | |
QLegendMarker subclass for pie series | |
QLegendMarker subclass for QXYSeries | |
Used for making line charts | |
Horizontal model mapper for pie series | |
Pie series API for Qt Charts | |
Defines a slice in pie series | |
Vertical model mapper for pie series | |
Base class for all Qt Chart series | |
Main chart API for Qt Charts | |
Standalone charting widget | |
Polar chart API for Qt Charts | |
Used for making scatter charts | |
Series type used to store data needed to draw a spline | |
Horizontal model mapper for QXYSeries | |
Vertical model mapper for 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();