PySide6.QtGraphs.QBarModelMapper¶
- class QBarModelMapper¶
- The - QBarModelMapperclass is a model mapper for bar series. More…- Inherited by: - QVBarModelMapper,- QHBarModelMapper- Added in version 6.8. - Synopsis¶- Methods¶- def - __init__()
- def - count()
- def - first()
- def - model()
- def - orientation()
- def - series()
- def - setCount()
- def - setFirst()
- def - setModel()
- def - setOrientation()
- def - setSeries()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a graph. A model mapper is used to create a connection between a data model and - QBarSeries.- Both model and bar series properties can be used to manipulate the data. The model mapper keeps the bar series and the data model in sync. - The model mapper ensures that all the bar sets in the bar series have equal sizes. Therefore, adding or removing a value from a bar set causes the same change to be made in all the bar sets in the bar series. - count()¶
- Return type:
- int 
 - See also 
 - first()¶
- Return type:
- int 
 - See also 
 - firstBarSetSection()¶
- Return type:
- int 
 - See also 
 - lastBarSetSection()¶
- Return type:
- int 
 - See also 
 - model()¶
- Return type:
 - See also 
 - orientation()¶
- Return type:
 - See also 
 - series()¶
- Return type:
 - See also 
 - setFirstBarSetSection(firstBarSetSection)¶
- Parameters:
- firstBarSetSection – int 
 - See also 
 - setLastBarSetSection(lastBarSetSection)¶
- Parameters:
- lastBarSetSection – int 
 - See also 
 - setModel(model)¶
- Parameters:
- model – - QAbstractItemModel
 - See also 
 - setOrientation(orientation)¶
- Parameters:
- orientation – - Orientation
 - See also 
 - setSeries(series)¶
- Parameters:
- series – - QAbstractBarSeries
 - See also