PySide2.QtCharts¶
t |
- QtCharts.QAbstractAxis
- QtCharts.QAbstractBarSeries
- QtCharts.QAbstractSeries
- QtCharts.QAreaLegendMarker
- QtCharts.QAreaSeries
- QtCharts.QBarCategoryAxis
- QtCharts.QBarLegendMarker
- QtCharts.QBarModelMapper
- QtCharts.QBarSeries
- QtCharts.QBarSet
- QtCharts.QBoxPlotLegendMarker
- QtCharts.QBoxPlotModelMapper
- QtCharts.QBoxPlotSeries
- QtCharts.QBoxSet
- QtCharts.QCandlestickLegendMarker
- QtCharts.QCandlestickModelMapper
- QtCharts.QCandlestickSeries
- QtCharts.QCandlestickSet
- QtCharts.QCategoryAxis
- QtCharts.QChart
- QtCharts.QChartView
- QtCharts.QDateTimeAxis
- QtCharts.QHBarModelMapper
- QtCharts.QHBoxPlotModelMapper
- QtCharts.QHCandlestickModelMapper
- QtCharts.QHPieModelMapper
- QtCharts.QHXYModelMapper
- QtCharts.QHorizontalBarSeries
- QtCharts.QHorizontalPercentBarSeries
- QtCharts.QHorizontalStackedBarSeries
- QtCharts.QLegend
- QtCharts.QLegendMarker
- QtCharts.QLineSeries
- QtCharts.QLogValueAxis
- QtCharts.QPercentBarSeries
- QtCharts.QPieLegendMarker
- QtCharts.QPieModelMapper
- QtCharts.QPieSeries
- QtCharts.QPieSlice
- QtCharts.QPolarChart
- QtCharts.QScatterSeries
- QtCharts.QSplineSeries
- QtCharts.QStackedBarSeries
- QtCharts.QVBarModelMapper
- QtCharts.QVBoxPlotModelMapper
- QtCharts.QVCandlestickModelMapper
- QtCharts.QVPieModelMapper
- QtCharts.QVXYModelMapper
- QtCharts.QValueAxis
- QtCharts.QXYLegendMarker
- QtCharts.QXYModelMapper
- QtCharts.QXYSeries
- QtCharts
Detailed Description¶
C++ classes for the Qt Charts API.
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 classQChartView
, which isQWidget
based. These enable us to quickly use Qt Charts as a normal Qt widget.If you intend to use Qt Charts C++ classes in your application, use the following include and using directives:
import PySide2.QtChartsEach 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 aQChart
instance.series = QtCharts.QLineSeries() series.append(0,6) series.append(2,4) ... chartView = QtCharts.QChartView() chartView.chart().addSeries(series) chartView.chart().createDefaultAxes() chartView.show()The module also provides QML types .
© 2018 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.