In questa pagina

QBarDataItem Class

La classe QBarDataItem fornisce un contenitore per i dati risolti da aggiungere ai grafici a barre. Per saperne di più...

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

Funzioni pubbliche

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

Descrizione dettagliata

Un oggetto dati barra contiene i dati relativi a una singola barra visualizzata in un grafico. I proxy dei dati delle barre analizzano i dati trasformandoli in istanze di QBarDataItem per i grafici a barre.

Vedi anche le classi C++ per il 3D" QBarDataProxy " e " Qt Graphs ".

Documentazione delle funzioni membro

[constexpr noexcept default] QBarDataItem::QBarDataItem()

Crea un elemento dati di tipo barra.

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

Crea un elemento dati di tipo barra con il valore “ value ”.

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

Crea un elemento dati a barre con il valore value e l’angolo angle.

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

Restituisce l'angolo di rotazione in gradi per questo elemento di dati.

Vedi anche setRotation().

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

Imposta l'angolo di rotazione angle in gradi per questa voce di dati.

Vedi anche rotation().

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

Imposta il valore val su questo elemento di dati.

Vedi anche value().

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

Restituisce il valore di questo elemento di dati.

Vedi anche 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.