BoxSet QML Type

Represents one item in a box-and-whiskers chart. 更多...

导入语句: import QtCharts 2.6
实例化: QBoxSet

特性

信号

方法

详细描述

A box-and-whiskers item is a graphical representation of a range and three median values that is constructed from five different values. There are two ways to specify the values. The first one is by using a constructor or the append () method. The values have to be specified in the following order: lower extreme, lower quartile, median, upper quartile, and upper extreme.

The second way is to create an empty BoxSet instance and specify the values using the setValue () 方法。

另请参阅 BoxPlotSeries .

特性文档编制

brushFilename : string

The name of the file used as a brush for the box-and-whiskers item.


count : int

The number of values of the box-and-whiskers item.


label : string

The label of the category of the box-and-whiskers item.


values : list

The values of the box-and-whiskers item. The following enumerations can be used as indexes when accessing the list of values:

常量 描述
BoxSet.LowerExtreme The smallest value of the box-and-whiskers item.
BoxSet.LowerQuartile The median value of the lower half of the box-and-whiskers item.
BoxSet.Median The median value of the box-and-whiskers item.
BoxSet.UpperQuartile The median value of the upper half of the box-and-whiskers item.
BoxSet.UpperExtreme The largest value of the box-and-whiskers item.

另请参阅 at () 和 setValue ().


信号文档编制

cleared ()

This signal is emitted when all the values of the box-and-whiskers item are set to 0.

The corresponding signal handler is onCleared() .

注意: 相应处理程序是 onCleared .

clicked ()

This signal is emitted when the user clicks a box-and-whiskers item in the chart.

The corresponding signal handler is onClicked() .

注意: 相应处理程序是 onClicked .

doubleClicked ()

This signal is emitted when the user double-clicks a box-and-whiskers item.

The corresponding signal handler is onDoubleClicked() .

注意: 相应处理程序是 onDoubleClicked .

hovered ( bool status )

This signal is emitted when a mouse is hovered over a box-and-whiskers item in a chart. When the mouse moves over the item, status turns true , and when the mouse moves away again, it turns false .

The corresponding signal handler is onHovered() .

注意: 相应处理程序是 onHovered .

pressed ()

This signal is emitted when the user clicks a box-and-whiskers item in the chart and holds down the mouse button.

The corresponding signal handler is onPressed .

注意: 相应处理程序是 onPressed .

released ()

This signal is emitted when the user releases the mouse press on a box-and-whiskers item.

The corresponding signal handler is onReleased() .

注意: 相应处理程序是 onReleased .

valueChanged ( int index )

This signal is emitted when the value of the box-and-whiskers item specified by index 改变。

The corresponding signal handler is onValueChanged() .

注意: 相应处理程序是 onValueChanged .

valuesChanged ()

This signal is emitted when multiple values of the box-and-whiskers item change.

The corresponding signal handler is onValuesChanged() .

注意: 相应处理程序是 onValuesChanged .

方法文档编制

void append ( qreal value )

Appends the new value specified by value to the end of the box-and-whiskers item.


void at ( int index )

Returns the value in the position specified by index .


void clear ()

Sets all the values of the box-and-whiskers item to 0.


void setValue ( int index , qreal value )

Sets the value specified by value in the position specified by index .

内容