PySide6.QtCharts#
QAreaLegendMarkerQAreaSeriesQBarLegendMarkerQBarModelMapperQBoxPlotLegendMarkerQBoxPlotModelMapperQBoxPlotSeriesQBoxSetQCandlestickLegendMarkerQCandlestickModelMapperQCandlestickSeriesQCandlestickSetQCategoryAxisQChartQChartViewQColorAxisQDateTimeAxisQHBarModelMapperQHBoxPlotModelMapperQHCandlestickModelMapperQHPieModelMapperQHXYModelMapperQHorizontalBarSeriesQHorizontalPercentBarSeriesQHorizontalStackedBarSeriesQLegendQLegendMarkerQLogValueAxisQPercentBarSeriesQPieLegendMarkerQPieModelMapperQPieSeriesQPieSliceQPolarChartQSplineSeriesQStackedBarSeriesQVBarModelMapperQVBoxPlotModelMapperQVCandlestickModelMapperQVPieModelMapperQVXYModelMapperQXYLegendMarkerQXYModelMapper
详细描述#
Qt Charts 模块提供了一套易于使用的图表组件。它使用 Qt 图形视图框架来集成图表与现代用户界面。Qt Charts 可以作为 QWidgets、QGraphicsWidget 或 QML 类型使用。用户可以通过选择一个主题轻松地创建令人印象深刻的图表。
入门指南#
要包含模块类定义,请使用以下指令
from PySide6 import QtCharts
该模块还提供了 QML 类型 。
注意
由于该模块依赖于 Qt 的 Graphics View Framework 进行渲染,因此需要 QApplication 实例以使用 QML 类型。QGuiApplication 不足够。
类列表#
A |
||
B |
||
C |
||
D |
||
H |
||
L |
||
P |
||
S |
||
V |
||
X |