QHorizontalBarSeries Class

QHorizontalBarSeries 类以按类别分组的水平条形显示一系列数据。更多

Header: #include <QHorizontalBarSeries>
In QML: HorizontalBarSeries
Inherits: QAbstractBarSeries

公共函数

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

重新实现的公共函数

virtual QAbstractSeries::SeriesType type() const override

详细说明

该类将数据绘制为一系列按类别分组的水平条形图,每个类别的每个条形图组都有一个条形图添加到系列中。

请参阅 "Widgets 图表库",了解如何创建水平条形图。

另请参见 QBarSet,QBarSeries,QPercentBarSeries,QAbstractBarSeries,QStackedBarSeries,QHorizontalStackedBarSeries, 和QHorizontalPercentBarSeries

成员函数文档

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

构建一个空的水平条形数列,该数列是QObjectparent 的子数列。

[virtual noexcept] QHorizontalBarSeries::~QHorizontalBarSeries()

从图表中删除水平条形序列。

[override virtual] QAbstractSeries::SeriesType QHorizontalBarSeries::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.