The QBarDataItem class provides a container for resolved data to be added to bar graphs. 更多...
头: | #include <QBarDataItem> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS DataVisualization)
target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
qmake: | QT += datavisualization |
Since: | QtDataVisualization 1.0 |
QBarDataItem () | |
QBarDataItem (float value ) | |
QBarDataItem (float value , float angle ) | |
QBarDataItem (const QBarDataItem & other ) | |
~QBarDataItem () | |
float | rotation () const |
void | setRotation (float angle ) |
void | setValue (float val ) |
float | value () const |
QBarDataItem & | operator= (const QBarDataItem & other ) |
A bar data item holds the data for a single rendered bar in a graph. Bar data proxies parse data into QBarDataItem instances for visualization.
另请参阅 QBarDataProxy and Qt Data Visualization C++ 类 .
Constructs a bar data item.
Constructs a bar data item with the value value .
Constructs a bar data item with the value value and angle angle .
构造副本为 other .
Deletes a bar data item.
Returns the rotation angle in degrees for this data item.
另请参阅 setRotation ().
Sets the rotation angle angle in degrees for this data item.
另请参阅 rotation ().
Sets the value val to this data item.
另请参阅 value ().
Returns the value of this data item.
另请参阅 setValue ().
赋值副本为 other 到此对象。