PySide6.QtGraphs.QXYModelMapper¶
- class QXYModelMapper¶
QXYModelMapper类是一个用于线、样条和散点系列的模型映射器。更多…继承者:
QVXYModelMapper,QHXYModelMapper在版本6.8中添加。
概要¶
方法¶
def
__init__()def
count()def
first()def
model()def
orientation()def
setCount()def
setFirst()def
setModel()def
setOrientation()def
setXSection()def
setYSection()def
xSection()def
ySection()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
模型映射器允许使用从QAbstractItemModel类派生的数据模型作为图形的数据源。模型映射器用于在线条、样条或散点系列之间创建连接。TableModel是模型的自然选择。
模型和系列属性都可以用来操作数据。模型映射器保持系列和数据模型的同步。
另请参阅
- count()¶
- Return type:
整数
另请参阅
- first()¶
- Return type:
整数
另请参阅
- model()¶
- Return type:
另请参阅
- orientation()¶
- Return type:
另请参阅
- setModel(model)¶
- Parameters:
模型 –
QAbstractItemModel
另请参阅
- setOrientation(orientation)¶
- Parameters:
方向 –
Orientation
另请参阅
- setXSection(xSection)¶
- Parameters:
xSection – 整数
另请参阅
- setYSection(ySection)¶
- Parameters:
ySection – int
另请参阅
- xSection()¶
- Return type:
整数
另请参阅
- ySection()¶
- Return type:
整数
另请参阅