このページでは

QPercentBarSeries Class

QPercentBarSeries クラスは、カテゴリ別に分類された一連のデータを、各カテゴリの割合として表示します。詳細...

Header: #include <QPercentBarSeries>
In QML: PercentBarSeries
Inherits: QAbstractBarSeries
Status: Deprecated

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

パブリック関数

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

再実装されたパブリック関数

virtual QAbstractSeries::SeriesType type() const override

詳細な説明

このクラスは、データを、カテゴリごとに 1 本ずつ、均一なサイズの縦に積み重ねられた棒グラフの系列として描画します。系列に追加される各棒グラフセットは、積み重ねられた各棒グラフに 1 つのセグメントを追加します。セグメントのサイズは、積み重ねられたすべてのセグメントの合計値に対する、そのセグメントの値の割合に対応します。値が 0 の棒グラフは描画されません。

パーセント棒グラフの作成方法については、「ウィジェット付きグラフ」ギャラリーを参照してください。

5つのセットに分かれた、各月のバーが100パーセントを占める縦型のパーセント棒グラフ

QBarSet 、QStackedBarSeries 、およびQAbstractBarSeriesも参照してください 。

メンバ関数のドキュメント

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

QObject であり、parent の子要素となる、空の垂直パーセントバー系列を作成します。

[virtual noexcept] QPercentBarSeries::~QPercentBarSeries()

チャートから棒グラフのシリーズを削除します。

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

プロパティ「QAbstractSeries::type 」のアクセス関数を再実装します。

縦棒グラフのパーセント系列を返します。

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