QBarDataItem Class

QBarDataItem クラスは、棒グラフに追加する解決済みデータのコンテナを提供します。詳細...

ヘッダー #include <QBarDataItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs

パブリック関数

QBarDataItem()
QBarDataItem(float value)
QBarDataItem(float value, float angle)
float rotation() const
void setRotation(float angle)
void setValue(float val)
float value() const

詳細説明

バー データ アイテムは、グラフ内のレンダリングされた 1 本のバーのデータを保持します。棒データ プロキシは、棒グラフ用の QBarDataItem インスタンスにデータを解析します。

QBarDataProxy およびQt Graphs C++ Classes for 3Dも参照してください

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

[constexpr noexcept] QBarDataItem::QBarDataItem()

バー・データ項目を構築します。

[explicit constexpr noexcept] QBarDataItem::QBarDataItem(float value)

value を持つバー・データ・アイテムを構築する。

[explicit constexpr noexcept] QBarDataItem::QBarDataItem(float value, float angle)

value 、角度angle

[constexpr noexcept] float QBarDataItem::rotation() const

このデータ項目の回転角度を度単位で返します。

setRotation()も参照してください

[constexpr noexcept] void QBarDataItem::setRotation(float angle)

このデータ項目の回転角度angle を度単位で設定する。

rotation()も参照

[constexpr noexcept] void QBarDataItem::setValue(float val)

このデータ項目に値val を設定する。

value()も参照

[constexpr noexcept] float QBarDataItem::value() const

このデータ項目の値を返します。

setValue()も参照

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