QBarSeries 类以按类别分组的垂直条形方式呈现一系列数据。 更多...
头: | #include <QBarSeries> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
qmake: | QT += graphs |
实例化: | BarSeries |
继承: | QAbstractBarSeries |
状态: | 技术预览 |
QBarSeries (QObject * parent = nullptr) | |
virtual | ~QBarSeries () |
QAbstractAxis * | axisX () |
QAbstractAxis * | axisY () |
void | setAxisX (QAbstractAxis * axis ) |
void | setAxisY (QAbstractAxis * axis ) |
virtual QAbstractSeries::SeriesType | type () const override |
void | axisXChanged (QAbstractAxis * axis ) |
void | axisYChanged (QAbstractAxis * axis ) |
此类将数据绘制为按类别分组的一系列垂直条形,采用把各类别来自每条形集的每一条形添加到系列。
另请参阅 QBarSet and QAbstractBarSeries .
X-axis of the series.
The x-axis used for the series. This should be QBarCategoryAxis .
访问函数:
QAbstractAxis * | axisX () |
void | setAxisX (QAbstractAxis * axis ) |
通知程序信号:
void | axisXChanged (QAbstractAxis * axis ) |
Y-axis of the series.
The y-axis used for the series. This should be QValueAxis .
访问函数:
QAbstractAxis * | axisY () |
void | setAxisY (QAbstractAxis * axis ) |
通知程序信号:
void | axisYChanged (QAbstractAxis * axis ) |
[explicit]
QBarSeries::
QBarSeries
(
QObject
*
parent
= nullptr)
构造的空条形系列是 QObject 和子级对于 parent .
[virtual noexcept]
QBarSeries::
~QBarSeries
()
Removes the bar series from the graph.
[override virtual]
QAbstractSeries::SeriesType
QBarSeries::
type
() const
重实现访问函数为特性: QAbstractSeries::type .
返回条形系列。