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