QBarDataItem Class

The QBarDataItem class provides a container for resolved data to be added to bar graphs. 更多...

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

公共函数

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 bar graphs.

另请参阅 QBarDataProxy and Qt Graphs C++ 类 .

成员函数文档编制

[constexpr noexcept] QBarDataItem:: QBarDataItem ()

Constructs a bar data item.

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

Constructs a bar data item with the value value .

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

Constructs a bar data item with the value value and angle angle .

QBarDataItem:: QBarDataItem (const QBarDataItem & other )

构造副本为 other .

[noexcept] QBarDataItem:: ~QBarDataItem ()

Deletes a bar data item.

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

Returns the rotation angle in degrees for this data item.

另请参阅 setRotation ().

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

Sets the rotation angle angle in degrees for this data item.

另请参阅 rotation ().

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

Sets the value val to this data item.

另请参阅 value ().

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

Returns the value of this data item.

另请参阅 setValue ().

QBarDataItem &QBarDataItem:: operator= (const QBarDataItem & other )

赋值副本为 other 到此对象。