- class QHBoxPlotModelMapper#
- QHBoxPlotModelMapper类是一个用于箱线图的横向模型映射器。 更多信息…- 摘要#- 属性#- columnCount- 箱线图系列数据的模型列数
- firstBoxSetRow - 模型中用于第一个箱线和须条项数据源的行 
- firstColumn - 包含箱线系列中箱线和须条项第一个值的模型的列 
- lastBoxSetRow - 模型中用于最后一个箱线和须条项数据源的行 
- model - 由映射器使用的模型 
- series - 由映射器使用的箱线系列 
 - 方法#- def - __init__()
- def - columnCount()
- def - firstBoxSetRow()
- def - firstColumn()
- def - lastBoxSetRow()
- def - setColumnCount()
- def - setFirstColumn()
 - 信号#
- def - modelReplaced()
- def - seriesReplaced()
 - 备注 - 本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果发现翻译问题,也可以通过在https:/bugreports.qt.io/projects/PYSIDE上创建工单的方式来告知我们 - 详细描述#- 模型映射器允许使用从QAbstractItemModel类派生的数据模型作为图表的数据源。水平模型映射器用于在数据模型和 - QBoxPlotSeries对象之间建立连接,使得数据模型中的每一行定义一个箱线图项,每一列映射到箱线图项的范围和三个中位数。- 模型和系列属性都可以用来操纵数据。模型映射器确保系列和数据模型保持同步。 - 模型映射器确保箱线图系列中的所有箱线图项都具有相同的大小。因此,向箱线图项添加或删除值会导致对箱线图系列中所有箱线图项进行相同的更改。 - 另请参阅 - 备注 - 当使用 - from __feature__ import true_property时可以直接使用属性,否则可以通过访问函数来使用。- 属性columnCountᅟ: int#
 - 此属性包含模型中映射为箱线图系列数据列数的列数。 - 最小和默认值是-1(数值限制为模型中的列数)。 - 属性firstBoxSetRowᅟ: int#
 - 此属性包含用作第一个箱线图项数据源的模型行。 - 默认值是-1(无效映射)。 - 属性firstColumnᅟ: int#
 - 此属性包含包含箱线图系列中箱线图项第一个值的数据模型列。 - 最小和默认值是0。 - property lastBoxSetRow: int#
 - 此属性保存用于作为最后一个箱线图项目数据源的模型行。 - 默认值是-1(无效映射)。 - property model: QAbstractItemModel#
 - 此属性保存用于映射器的模型。 - 访问函数
 - property series: QBoxPlotSeries#
 - 此属性保存用于映射器的箱线图系列。 - 当将其设置为映射器时,系列中的所有数据都将被丢弃。当指定新系列时,旧系列将被断开连接(但保留其数据)。 - 访问函数
 - 构建一个映射对象,它是 - parent的子对象。- columnCount()#
- 返回类型:
- int 
 - 另请参阅 
 - 属性 - columnCountᅟ的获取器。- columnCountChanged()#
 - 当列数改变时,发出此信号。 - 属性 - columnCountᅟ的通知信号。- firstBoxSetRow()#
- 返回类型:
- int 
 - 另请参阅 
 - 属性 - firstBoxSetRowᅟ的获取器。- firstBoxSetRowChanged()#
 - 当第一个箱线和须项目行发生变化时发出此信号。 - 属性 - firstBoxSetRow的通告信号。- firstColumn()#
- 返回类型:
- int 
 - 另请参阅 
 - firstColumn属性的获取器。- firstColumnChanged()#
 - 当第一个列发生变化时发出此信号。 - firstColumn属性的通告信号。- lastBoxSetRow()#
- 返回类型:
- int 
 - 另请参阅 
 - lastBoxSetRow属性的获取器。- lastBoxSetRowChanged()#
 - 当最后一个箱线和须项目行发生变化时发出此信号。 - lastBoxSetRow属性的通告信号。- modelReplaced()#
 - 当被映射器连接的模型发生变化时发出此信号。 - model属性的通告信号。- seriesReplaced()#
 - 当被映射器连接的序列发生变化时发出此信号。 - series属性的通告信号。- setColumnCount(rowCount)#
- 参数:
- rowCount - int 
 - 另请参阅 
 - columnCount属性的设置器。- setFirstBoxSetRow(firstBoxSetRow)#
- 参数:
- firstBoxSetRow - int 
 - 另请参阅 
 - firstBoxSetRow属性的设置器。- setFirstColumn(firstColumn)#
- 参数:
- firstColumn - int 
 - 另请参阅 
 - 属性 - firstColumn属性的设置器。- setLastBoxSetRow(lastBoxSetRow)#
- 参数:
- lastBoxSetRow – int 
 - 另请参阅 
 - 属性 - lastBoxSetRow属性的设置器。