Auf dieser Seite

QBarDataItem Class

Die Klasse „QBarDataItem“ stellt einen Container für aufbereitete Daten bereit, die zu Balkendiagrammen hinzugefügt werden sollen. Mehr...

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

Öffentliche Funktionen

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

Ausführliche Beschreibung

Ein Bar-Datenelement enthält die Daten für einen einzelnen gerenderten Balken in einem Diagramm. Bar-Daten-Proxies wandeln Daten in QBarDataItem-Instanzen für Balkendiagramme um.

Siehe auch die C++-Klassen„ QBarDataProxy “ und „Qt Graphs “ für 3D.

Dokumentation der Mitgliedsfunktionen

[constexpr noexcept default] QBarDataItem::QBarDataItem()

Erstellt ein Balkendiagramm-Datenelement.

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

Erstellt ein Balkendiagramm-Datenelement mit dem Wert „ value “.

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

Erstellt ein Balkendiagramm-Datenelement mit dem Wert „ value “ und dem Winkel „ angle “.

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

Gibt den Drehwinkel dieses Datenelements in Grad zurück.

Siehe auch „ setRotation()“.

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

Legt den Drehwinkel „ angle “ in Grad für dieses Datenelement fest.

Siehe auch rotation().

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

Weist diesem Datenelement den Wert „ val “ zu.

Siehe auch „ value()“.

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

Gibt den Wert dieses Datenelements zurück.

Siehe auch „ setValue()“.

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