The QBarSet 類錶示條形圖錶中的一組條形。 更多...
| 頭: | #include <QBarSet> |
| 實例化: | BarSet |
| 繼承: | QObject |
|
|
| QBarSet (const QString label , QObject * parent = nullptr) | |
| virtual | ~QBarSet () |
| void | append (const qreal value ) |
| void | append (const QList<qreal> & values ) |
| qreal | at (const int index ) const |
| QColor | borderColor () |
| QBrush | brush () const |
| QColor | color () |
| int | count () const |
| void | insert (const int index , const qreal value ) |
| QString | label () const |
| QBrush | labelBrush () const |
| QColor | labelColor () |
| QFont | labelFont () const |
| QPen | pen () const |
| void | remove (const int index , const int count = 1) |
| void | replace (const int index , const qreal value ) |
| void | setBorderColor (QColor color ) |
| void | setBrush (const QBrush & brush ) |
| void | setColor (QColor color ) |
| void | setLabel (const QString label ) |
| void | setLabelBrush (const QBrush & brush ) |
| void | setLabelColor (QColor color ) |
| void | setLabelFont (const QFont & font ) |
| void | setPen (const QPen & pen ) |
| qreal | sum () const |
| QBarSet & | operator<< (const qreal & value ) |
| qreal | operator[] (const int index ) const |
| void | borderColorChanged (QColor color ) |
| void | brushChanged () |
| void | clicked (int index ) |
| void | colorChanged (QColor color ) |
| void | doubleClicked (int index ) |
| void | hovered (bool status , int index ) |
| void | labelBrushChanged () |
| void | labelChanged () |
| void | labelColorChanged (QColor color ) |
| void | labelFontChanged () |
| void | penChanged () |
| void | pressed (int index ) |
| void | released (int index ) |
| void | valueChanged (int index ) |
| void | valuesAdded (int index , int count ) |
| void | valuesRemoved (int index , int count ) |
| const QMetaObject | staticMetaObject |
The QBarSet 類錶示條形圖錶中的一組條形。
條形集包含每個類彆的一個數據值。假定集的第 1 個值屬於第 1 個類彆,第 2 個值屬於第 2 個類彆,依此類推。若集擁有的值少於類彆,假定缺少值位於集末尾。對於集中間的缺少值,使用數值 0。0 值集標簽不展示。
另請參閱 QAbstractBarSeries , QBarSeries , QStackedBarSeries , QPercentBarSeries , QHorizontalBarSeries , QHorizontalStackedBarSeries ,和 QHorizontalPercentBarSeries .
此特性保持條形集的綫條 (鋼筆) 顔色。
訪問函數:
| QColor | borderColor () |
| void | setBorderColor (QColor color ) |
通知程序信號:
| void | borderColorChanged (QColor color ) |
此特性保持用於填充條形集中條形的筆刷。
訪問函數:
| QBrush | brush () const |
| void | setBrush (const QBrush & brush ) |
通知程序信號:
| void | brushChanged () |
此特性保持條形集的填充 (筆刷) 顔色。
訪問函數:
| QColor | color () |
| void | setColor (QColor color ) |
通知程序信號:
| void | colorChanged (QColor color ) |
此特性保持條形集的標簽。
訪問函數:
| QString | label () const |
| void | setLabel (const QString label ) |
通知程序信號:
| void | labelChanged () |
This property holds the brush used to draw the bar set's label.
訪問函數:
| QBrush | labelBrush () const |
| void | setLabelBrush (const QBrush & brush ) |
通知程序信號:
| void | labelBrushChanged () |
This property holds the text (label) color of the bar set.
訪問函數:
| QColor | labelColor () |
| void | setLabelColor (QColor color ) |
通知程序信號:
| void | labelColorChanged (QColor color ) |
This property holds the font used to draw the bar set's label.
訪問函數:
| QFont | labelFont () const |
| void | setLabelFont (const QFont & font ) |
通知程序信號:
| void | labelFontChanged () |
This property holds the pen used to draw the lines of bars in the bar set.
訪問函數:
| QPen | pen () const |
| void | setPen (const QPen & pen ) |
通知程序信號:
| void | penChanged () |
構造條形集采用標簽 label and the parent parent .
[虛擬]
QBarSet::
~QBarSet
()
Removes the bar set.
Appends the new value specified by value to the end of the bar set.
Appends the list of real values specified by values to the end of the bar set.
另請參閱 append ().
Returns the value specified by index from the bar set. If the index is out of bounds, 0.0 is returned.
Returns the line color for the bar set.
注意: getter 函數對於特性 borderColor .
另請參閱 setBorderColor ().
[signal]
void
QBarSet::
borderColorChanged
(
QColor
color
)
This signal is emitted when the line (pen) color of the bar set changes to color .
注意: 通知程序信號對於特性 borderColor .
Returns the brush used to fill the bars in the bar set.
注意: getter 函數對於特性 brush .
另請參閱 setBrush ().
[signal]
void
QBarSet::
brushChanged
()
This signal is emitted when the brush used to draw the bar set changes.
注意: 通知程序信號對於特性 brush .
另請參閱 brush .
[signal]
void
QBarSet::
clicked
(
int
index
)
This signal is emitted when the user clicks the bar specified by index in a bar set.
Returns the fill color for the bar set.
注意: getter 函數對於特性 color .
另請參閱 setColor ().
[signal]
void
QBarSet::
colorChanged
(
QColor
color
)
This signal is emitted when the fill (brush) color of the bar set changes to color .
注意: 通知程序信號對於特性 color .
Returns the number of values in a bar set.
[signal]
void
QBarSet::
doubleClicked
(
int
index
)
This signal is emitted when the user double-clicks the bar specified by index in a bar set.
[signal]
void
QBarSet::
hovered
(
bool
status
,
int
index
)
This signal is emitted when a mouse is hovered over the bar specified by
index
in a bar set. When the mouse moves over the bar,
status
turns
true
, and when the mouse moves away again, it turns
false
.
插入 value in the position specified by index . The values following the inserted value are moved up one position.
另請參閱 remove ().
Returns the label of the bar set.
注意: getter 函數對於特性 label .
另請參閱 setLabel ().
Returns the brush used to draw values on top of this bar set.
注意: getter 函數對於特性 labelBrush .
另請參閱 setLabelBrush ().
[signal]
void
QBarSet::
labelBrushChanged
()
This signal is emitted when the brush used to draw the bar set's label changes.
注意: 通知程序信號對於特性 labelBrush .
另請參閱 labelBrush .
[signal]
void
QBarSet::
labelChanged
()
This signal is emitted when the label of the bar set changes.
注意: 通知程序信號對於特性 label .
另請參閱 label .
Returns the text color for the bar set.
注意: getter 函數對於特性 labelColor .
另請參閱 setLabelColor ().
[signal]
void
QBarSet::
labelColorChanged
(
QColor
color
)
This signal is emitted when the text (label) color of the bar set changes to color .
注意: 通知程序信號對於特性 labelColor .
Returns the pen used to draw values on top of this bar set.
注意: getter 函數對於特性 labelFont .
另請參閱 setLabelFont ().
[signal]
void
QBarSet::
labelFontChanged
()
This signal is emitted when the font of the bar set's label changes.
注意: 通知程序信號對於特性 labelFont .
另請參閱 labelBrush .
Returns the pen used to draw the lines in the bar set.
注意: getter 函數對於特性 pen .
另請參閱 setPen ().
[signal]
void
QBarSet::
penChanged
()
This signal is emitted when the pen used to draw the bar set changes.
注意: 通知程序信號對於特性 pen .
另請參閱 pen .
[signal]
void
QBarSet::
pressed
(
int
index
)
This signal is emitted when the user clicks the bar specified by index in a bar set and holds down the mouse button.
[signal]
void
QBarSet::
released
(
int
index
)
This signal is emitted when the user releases the mouse press on the bar specified by index in a bar set.
Removes the number of values specified by count from the bar set starting with the value specified by index .
另請參閱 insert ().
Adds the value specified by value to the bar set at the position specified by index .
將條形集的綫顔色設為 color .
注意: setter 函數對於特性 borderColor .
另請參閱 borderColor ().
Sets the brush used to fill the bars in the bar set to brush .
注意: setter 函數對於特性 brush .
另請參閱 brush ().
將條形集的填充顔色設為 color .
注意: setter 函數對於特性 color .
另請參閱 color ().
集 label as the new label for the bar set.
注意: setter 函數對於特性 label .
另請參閱 label ().
Sets the brush used to draw values on top of this bar set to brush .
注意: setter 函數對於特性 labelBrush .
另請參閱 labelBrush ().
Sets the text color for the bar set to color .
注意: setter 函數對於特性 labelColor .
另請參閱 labelColor ().
Sets the font used to draw values on top of this bar set to font .
注意: setter 函數對於特性 labelFont .
另請參閱 labelFont ().
Sets the pen used to draw the lines in the bar set to pen .
注意: setter 函數對於特性 pen .
另請參閱 pen ().
Returns the sum of all values in the bar set.
[signal]
void
QBarSet::
valueChanged
(
int
index
)
This signal is emitted when the value at the position specified by index 被修改。
另請參閱 at ().
[signal]
void
QBarSet::
valuesAdded
(
int
index
,
int
count
)
This signal is emitted when new values are added to the bar set. index indicates the position of the first inserted value, and count is the number of inserted values.
[signal]
void
QBarSet::
valuesRemoved
(
int
index
,
int
count
)
This signal is emitted when values are removed from the bar set. index indicates the position of the first removed value, and count is the number of removed values.
另請參閱 remove ().
A convenience operator for appending the real value specified by value to the end of the bar set.
另請參閱 append ().
Returns the value of the bar set specified by index . If the index is out of bounds, 0.0 is returned.