Qt Charts 模块的 C++ 类及描述

来源:互联网 发布:cms监控软件操作说明 编辑:程序博客网 时间:2024/06/07 07:52

详细描述

图标API是建立在Qt 的图形视图框架之上。图表可以使用QChart显示为QGraphicsWidget。然而,还有一个便利的类QChartView,它是基于QWidget的。这使得我们能够快速使用Qt Charts(图表),就像使用一个普通的Qt小部件一样。

每个图表类型由QAbstractSeries派生类表示。要创建一个图表,用户必须使用一个相关系列类的实例并将它添加到一个QChart实例中。

示例代码如下:
  QLineSeries* series = new QLineSeries();  series->add(0, 6);  series->add(2, 4);  ...  chartView->chart()->addSeries(series);  chartView->chart()->createDefaultAxes();


Qt Charts C++ Classes(Qt 图表模块的C++类)

类名

英文描述

中文描述

QAreaSeries

Presents data in area charts

在区域图(面积图)中显示(呈现)数据                                                                       

QBarCategoryAxis

Adds categories to a chart's axes

将类别添加到图表的坐标轴上

QCategoryAxis

Places named ranges on the axis

在坐标轴上放置自命名(被起名的)的范围

QDateTimeAxis

Adds dates and times to a chart's axis

添加时间和如期到图表的坐标轴上

QLogValueAxis

Adds a logarithmic scale to a chart's axis

添加对数刻度到坐标轴上

QAbstractAxis

Base class used for specialized axis classes

特定坐标轴类的基类

QValueAxis

Adds values to a chart's axes

添加值到图表坐标轴上

QHorizontalBarSeries

Presents a series of data as horizontal bars grouped by category

将一系列数据作为按类别分组的水平柱状图来显示

QHorizontalPercentBarSeries

Presents a series of categorized data as a percentage of each category

提供一系列每个类别分类数据的比例(水平方向展示这些比例栏)

QHorizontalStackedBarSeries

Presents a series of data as horizontally stacked bars, with one bar per category

显示一系列数据作为水平叠加栏,每个类别拥有一个水平栏

QAbstractBarSeries

Abstract parent class for all bar series classes

所有柱状图系列类的抽象父类

QBarSet

Represents one set of bars in a bar chart

代表柱状图中的一组柱状图(如共有一月到十二月共十二组则一个QBarSet代表一组如代表一月这组

QHBarModelMapper

Horizontal model mapper for bar series

柱状图系列的水平模型映射器

QVBarModelMapper

Vertical model mapper for bar series

柱状图系列的垂直模型映射器

QBarSeries

Presents a series of data as vertical bars grouped by category

将一系列数据按类别分组显示的垂直柱状图

QPercentBarSeries

Presents a series of categorized data as a percentage of each category

提供一系列的每个类别分类数据的比例

QStackedBarSeries

Presents a series of data as vertically stacked bars, with one bar per category

将一系列数据作为垂直堆叠的栏,每个系列有一小节(栏)

QBoxPlotSeries

Presents data in box-and-whiskers charts

使用盒须图显示数据

QBoxSet

Represents one item in a box-and-whiskers chart

表示盒须图中的一个项

QHBoxPlotModelMapper

Horizontal model mapper for box plot series

盒须图的水平模型映射器

QVBoxPlotModelMapper

Vertical model mapper for box plot series

盒须图系列的垂直模型映射器

QCandlestickModelMapper

Abstract model mapper class for candlestick series

烛台图系列的抽象模型映射器

QCandlestickSeries

Presents data as candlesticks

以烛台图显示数据

QCandlestickSet

Represents a single candlestick item in a candlestick chart

表示烛台图中单个烛台项目

QHCandlestickModelMapper

Horizontal model mapper for a candlestick series

烛台图表系列的水平模型映射器

QVCandlestickModelMapper

Vertical model mapper for a candlestick series

烛台图表系列的垂直模型映射器

QAreaLegendMarker

Legend marker for an area series

面积图(区域图)系列的图例标记

QBarLegendMarker

Legend marker for a bar series

柱状图系列的图例标记

QBoxPlotLegendMarker

Legend marker for a box plot series

箱形图系列的图例标记

QCandlestickLegendMarker

Legend marker for a candlestick series

烛台图表的图例标记

QLegend

Displays the legend of a chart

显示图表的图例

QLegendMarker

Abstract object that can be used to access markers within a legend

可用于访问图例中的标记的抽象对象

QPieLegendMarker

Legend marker for a pie series

饼状图系列的图例标记

QXYLegendMarker

Legend marker for a line, spline, or scatter series

折线图,曲线图或者散点图的图例标记

QLineSeries

Presents data in line charts

显示折线图中的数据

QHPieModelMapper

Horizontal model mapper for pie series

饼状图系列的水平模型映射器

QPieSeries

Pie series API for Qt Charts

Qt Charts的饼状图系列API

QPieSlice

Defines a slice in pie series

定义了一个饼状图系列的一个切片

QVPieModelMapper

Vertical model mapper for pie series

饼状图系列的垂直模型映射器

QAbstractSeries

Base class for all Qt Chart series

所有Qt图表系列的基类

QChart

Main chart API for Qt Charts

Qt Charts的主要图标API

QChartView

Standalone charting widget

独立的图标小部件(用于显示图标)

QPolarChart

Polar chart API for Qt Charts

Qt Charts的极坐标图API

QScatterSeries

Used for making scatter charts

用于绘制散点图

QSplineSeries

Series type used to store data needed to draw a spline

用于存储绘制曲线图需要的数据的系列类型

QHXYModelMapper

Horizontal model mapper for QXYSeries

QXYSeries的水平模型映射器

QVXYModelMapper

Vertical model mapper for QXYSeries

QXYSeries的垂直模型映射器

QXYSeries

Base class for line, spline and scatter series

折线图,曲线图和散点图的基类




了解了每个类是什么图表或者图表中的元素,再深入理解如何使用Qt提供的API来构建符合我们实际生产环境的图表。

原创粉丝点击