QStackedBarSeries Class

QStackedBarSeries 类将一系列数据显示为垂直堆叠的条形图,每个类别一个条形图。更多

Header: #include <QStackedBarSeries>
In QML: StackedBarSeries
Inherits: QAbstractBarSeries

公共函数

QStackedBarSeries(QObject *parent = nullptr)
virtual ~QStackedBarSeries()

重新实现的公共函数

virtual QAbstractSeries::SeriesType type() const override

详细说明

每个添加到系列中的条形图集都会为每个堆叠条形图贡献一个单独的线段。

请参阅 "使用小工具的图表图库"了解如何创建堆叠条形图。

另请参阅 QBarSet,QPercentBarSeries, 和QAbstractBarSeries

成员函数文档

[explicit] QStackedBarSeries::QStackedBarSeries(QObject *parent = nullptr)

构建一个空的条形图系列,该系列是QObjectparent 的子系列。

[virtual noexcept] QStackedBarSeries::~QStackedBarSeries()

从图表中删除条形序列。

[override virtual] QAbstractSeries::SeriesType QStackedBarSeries::type() const

重新实现属性:QAbstractSeries::type 的访问函数。

返回堆叠条形序列。

© 2025 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.