Qt Charts C++ Classes
C++ classes for the Qt Charts API. More...
Classes
Presents data in area charts | |
Adds categories to a chart's axes | |
Places named ranges on the axis | |
Adds dates and times to a chart's axis | |
Adds a logarithmic scale to a chart's axis | |
Base class used for specialized axis classes | |
Adds values to a chart's axes | |
Presents a series of data as horizontal bars grouped by category | |
Presents a series of categorized data as a percentage of each category | |
Presents a series of data as horizontally stacked bars, with one bar per category | |
Abstract parent class for all bar series classes | |
Represents one set of bars in a bar chart | |
Horizontal model mapper for bar series | |
Vertical model mapper for bar series | |
Presents a series of data as vertical bars grouped by category | |
Presents a series of categorized data as a percentage of each category | |
Presents a series of data as vertically stacked bars, with one bar per category | |
Presents data in box-and-whiskers charts | |
Represents one item in a box-and-whiskers chart | |
Horizontal model mapper for box plot series | |
Vertical model mapper for box plot series | |
Abstract model mapper class for candlestick series | |
Presents data as candlesticks | |
Represents a single candlestick item in a candlestick chart | |
Horizontal model mapper for a candlestick series | |
Vertical model mapper for a candlestick series | |
Legend marker for an area series | |
Legend marker for a bar series | |
Legend marker for a box plot series | |
Legend marker for a candlestick series | |
Displays the legend of a chart | |
Abstract object that can be used to access markers within a legend | |
Legend marker for a pie series | |
Legend marker for a line, spline, or scatter series | |
Presents data in 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();
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.