QItemModelSurfaceDataProxy#
Proxy class for presenting data in item models with Q3DSurface
. More…
Synopsis#
Properties#
autoColumnCategories
- Whether column categories are generated automaticallyautoRowCategories
- Whether row categories are generated automaticallycolumnCategories
- Column categories for the mappingcolumnRole
- Item model role to map to the column categorycolumnRolePattern
- Whether a search and replace is done on the value mapped by the column role before it is used as a column categorycolumnRoleReplace
- Replace content to be used in conjunction with a column role patternitemModel
- Item model used as a data source for the 3D surfacemultiMatchBehavior
- How multiple matches for each row/column combination are handledrowCategories
- Row categories for the mappingrowRole
- Item model role to map to the row categoryrowRolePattern
- Whether a search and replace is performed on the value mapped by the row role before it is used as a row categoryrowRoleReplace
- Replace content to be used in conjunction with the row role patternuseModelCategories
- Whether row and column roles and categories are used for mappingxPosRole
- Item model role to map to the X positionxPosRolePattern
- Whether a search and replace is done on the value mapped by the x position role before it is used as an item position valuexPosRoleReplace
- Replace content to be used in conjunction with an x position role patternyPosRole
- Item model role to map to the Y positionyPosRolePattern
- Whether a search and replace is done on the value mapped by the y position role before it is used as an item position valueyPosRoleReplace
- Replace content to be used in conjunction with an y position role patternzPosRole
- Item model role to map to the Z positionzPosRolePattern
- Whether a search and replace is done on the value mapped by the z position role before it is used as an item position valuezPosRoleReplace
- Replace content to be used in conjunction with a z position role pattern
Functions#
def
autoColumnCategories
()def
autoRowCategories
()def
columnCategories
()def
columnCategoryIndex
(category)def
columnRole
()def
columnRolePattern
()def
columnRoleReplace
()def
itemModel
()def
multiMatchBehavior
()def
remap
(rowRole, columnRole, xPosRole, yPosRole, zPosRole, rowCategories, columnCategories)def
rowCategories
()def
rowCategoryIndex
(category)def
rowRole
()def
rowRolePattern
()def
rowRoleReplace
()def
setAutoColumnCategories
(enable)def
setAutoRowCategories
(enable)def
setColumnCategories
(categories)def
setColumnRole
(role)def
setColumnRolePattern
(pattern)def
setColumnRoleReplace
(replace)def
setItemModel
(itemModel)def
setMultiMatchBehavior
(behavior)def
setRowCategories
(categories)def
setRowRole
(role)def
setRowRolePattern
(pattern)def
setRowRoleReplace
(replace)def
setUseModelCategories
(enable)def
setXPosRole
(role)def
setXPosRolePattern
(pattern)def
setXPosRoleReplace
(replace)def
setYPosRole
(role)def
setYPosRolePattern
(pattern)def
setYPosRoleReplace
(replace)def
setZPosRole
(role)def
setZPosRolePattern
(pattern)def
setZPosRoleReplace
(replace)def
useModelCategories
()def
xPosRole
()def
xPosRolePattern
()def
xPosRoleReplace
()def
yPosRole
()def
yPosRolePattern
()def
yPosRoleReplace
()def
zPosRole
()def
zPosRolePattern
()def
zPosRoleReplace
()
Signals#
def
autoColumnCategoriesChanged
(enable)def
autoRowCategoriesChanged
(enable)def
columnCategoriesChanged
()def
columnRoleChanged
(role)def
columnRolePatternChanged
(pattern)def
columnRoleReplaceChanged
(replace)def
itemModelChanged
(itemModel)def
multiMatchBehaviorChanged
(behavior)def
rowCategoriesChanged
()def
rowRoleChanged
(role)def
rowRolePatternChanged
(pattern)def
rowRoleReplaceChanged
(replace)def
useModelCategoriesChanged
(enable)def
xPosRoleChanged
(role)def
xPosRolePatternChanged
(pattern)def
xPosRoleReplaceChanged
(replace)def
yPosRoleChanged
(role)def
yPosRolePatternChanged
(pattern)def
yPosRoleReplaceChanged
(replace)def
zPosRoleChanged
(role)def
zPosRolePatternChanged
(pattern)def
zPosRoleReplaceChanged
(replace)
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#
Warning
This section contains snippets that were automatically translated from C++ to Python and may contain errors.
QItemModelSurfaceDataProxy
allows you to use QAbstractItemModel
derived models as a data source for Q3DSurface
. It uses the defined mappings to map data from the model to rows, columns, and surface points of Q3DSurface
graph.
Data is resolved asynchronously whenever the mapping or the model changes. arrayReset()
is emitted when the data has been resolved. However, when useModelCategories
property is set to true
, single item changes are resolved synchronously, unless the same frame also contains a change that causes the whole model to be resolved.
Mappings can be used in the following ways:
If
useModelCategories
property is set totrue
, this proxy will map rows and columns ofQAbstractItemModel
to rows and columns ofQ3DSurface
, and uses the value returned forDisplayRole
as Y-position by default. Row and column headers are used for Z-position and X-position by default, if they can be converted to floats. Otherwise row and column indices are used. The Y-position role to be used can be redefined ifDisplayRole
is not suitable. The Z-position and X-position roles to be used can be redefined if the headers or indices are not suitable.For models that do not have data already neatly sorted into rows and columns, such as
QAbstractListModel
based models, you can define a role from the model to map for each of row, column and Y-position.If you do not want to include all data contained in the model, or the autogenerated rows and columns are not ordered as you wish, you can specify which rows and columns should be included and in which order by defining an explicit list of categories for either or both of rows and columns.
For example, assume that you have a custom QAbstractItemModel
storing surface topography data. Each item in the model has the roles “longitude”, “latitude”, and “height”. The item model already contains the data properly sorted so that longitudes and latitudes are first encountered in correct order, which enables us to utilize the row and column category autogeneration. You could do the following to display the data in a surface graph:
proxy = QItemModelSurfaceDataProxy(customModel,() "longitude", // Row role "latitude", // Column role "height") # Y-position role
If the fields of the model do not contain the data in the exact format you need, you can specify a search pattern regular expression and a replace rule for each role to get the value in a format you need. For more information how the replace using regular expressions works, see replace
(const QRegularExpression
&rx, const QString
&after) function documentation. Note that using regular expressions has an impact on the performance, so it’s more efficient to utilize item models where doing search and replace is not necessary to get the desired values.
For example about using the search patterns in conjunction with the roles, see ItemModelBarDataProxy usage in Simple Bar Graph example.
See also
- class PySide6.QtDataVisualization.QItemModelSurfaceDataProxy(itemModel[, parent=None])#
PySide6.QtDataVisualization.QItemModelSurfaceDataProxy(itemModel, rowRole, columnRole, xPosRole, yPosRole, zPosRole[, parent=None])
PySide6.QtDataVisualization.QItemModelSurfaceDataProxy(itemModel, rowRole, columnRole, xPosRole, yPosRole, zPosRole, rowCategories, columnCategories[, parent=None])
PySide6.QtDataVisualization.QItemModelSurfaceDataProxy(itemModel, rowRole, columnRole, yPosRole[, parent=None])
PySide6.QtDataVisualization.QItemModelSurfaceDataProxy(itemModel, rowRole, columnRole, yPosRole, rowCategories, columnCategories[, parent=None])
PySide6.QtDataVisualization.QItemModelSurfaceDataProxy(itemModel, yPosRole[, parent=None])
PySide6.QtDataVisualization.QItemModelSurfaceDataProxy([parent=None])
- Parameters:
itemModel –
PySide6.QtCore.QAbstractItemModel
rowCategories – list of strings
rowRole – str
xPosRole – str
columnCategories – list of strings
yPosRole – str
columnRole – str
zPosRole – str
parent –
PySide6.QtCore.QObject
Constructs QItemModelSurfaceDataProxy
with itemModel
and optional parent
. Proxy doesn’t take ownership of the itemModel
, as typically item models are owned by other controls.
Constructs QItemModelSurfaceDataProxy
with itemModel
and optional parent
. Proxy doesn’t take ownership of the itemModel
, as typically item models are owned by other controls. The role mappings are set with rowRole
, columnRole
, xPosRole
, yPosRole
, and zPosRole
.
Constructs QItemModelSurfaceDataProxy
with itemModel
and optional parent
. Proxy doesn’t take ownership of the itemModel
, as typically item models are owned by other controls. The role mappings are set with rowRole
, columnRole
, xPosRole
, yPosRole
, and zPosRole
. Row and column categories are set with rowCategories
and columnCategories
. This constructor also sets autoRowCategories
and autoColumnCategories
to false.
Constructs QItemModelSurfaceDataProxy
with itemModel
and optional parent
. Proxy doesn’t take ownership of the itemModel
, as typically item models are owned by other controls. The role mappings are set with rowRole
, columnRole
, and yPosRole
. The zPosRole
and the xPosRole
are set to rowRole
and columnRole
, respectively.
Constructs QItemModelSurfaceDataProxy
with itemModel
and optional parent
. Proxy doesn’t take ownership of the itemModel
, as typically item models are owned by other controls. The role mappings are set with rowRole
, columnRole
, and yPosRole
. The zPosRole
and the xPosRole
are set to rowRole
and columnRole
, respectively. Row and column categories are set with rowCategories
and columnCategories
. This constructor also sets autoRowCategories
and autoColumnCategories
to false.
Constructs QItemModelSurfaceDataProxy
with itemModel
and optional parent
. Proxy doesn’t take ownership of the itemModel
, as typically item models are owned by other controls. The yPosRole
role is set to yPosRole
. This constructor is meant to be used with models that have data properly sorted in rows and columns already, so it also sets useModelCategories
property to true
.
Constructs QItemModelSurfaceDataProxy
with optional parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.autoColumnCategories: bool#
This property holds Whether column categories are generated automatically..
When set to true
, the mapping ignores any explicitly set column categories and overwrites them with automatically generated ones whenever the data from the model is resolved. Defaults to true
.
- Access functions:
setAutoColumnCategories
(enable)Signal
autoColumnCategoriesChanged
(enable)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.autoRowCategories: bool#
This property holds Whether row categories are generated automatically..
When set to true
, the mapping ignores any explicitly set row categories and overwrites them with automatically generated ones whenever the data from the model is resolved. Defaults to true
.
- Access functions:
setAutoRowCategories
(enable)Signal
autoRowCategoriesChanged
(enable)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnCategories: list of strings#
This property holds The column categories for the mapping..
- Access functions:
setColumnCategories
(categories)Signal
columnCategoriesChanged
()
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRole: str#
This property holds The item model role to map to the column category..
In addition to defining which column the data belongs to, the value indicated by the column role is also set as the X-coordinate value of QSurfaceDataItem
when model data is resolved, unless a separate x position role is also defined.
- Access functions:
columnRole
()setColumnRole
(role)Signal
columnRoleChanged
(role)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRolePattern: PySide6.QtCore.QRegularExpression#
This property holds Whether a search and replace is done on the value mapped by the column role before it is used as a column category..
This property specifies the regular expression to find the portion of the mapped value to replace and the columnRoleReplace
property contains the replacement string.
See also
- Access functions:
setColumnRolePattern
(pattern)Signal
columnRolePatternChanged
(pattern)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRoleReplace: str#
This property holds The replace content to be used in conjunction with a column role pattern..
Defaults to an empty string. For more information on how the search and replace using regular expressions works, see the replace
(const QRegularExpression
&rx, const QString
&after) function documentation.
See also
- Access functions:
setColumnRoleReplace
(replace)Signal
columnRoleReplaceChanged
(replace)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.itemModel: PySide6.QtCore.QAbstractItemModel#
This property holds The item model used as a data source for the 3D surface..
- Access functions:
itemModel
()setItemModel
(itemModel)Signal
itemModelChanged
(itemModel)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.multiMatchBehavior: MultiMatchBehavior#
This property holds How multiple matches for each row/column combination are handled..
Defaults to MMBLast
.
For example, you might have an item model with timestamped data taken at irregular intervals and you want to visualize an average position of data items on each hour with a surface graph. This can be done by specifying row and column categories so that each surface point represents an hour, and setting this property to MMBAverage
.
- Access functions:
setMultiMatchBehavior
(behavior)Signal
multiMatchBehaviorChanged
(behavior)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowCategories: list of strings#
This property holds The row categories for the mapping..
- Access functions:
setRowCategories
(categories)Signal
rowCategoriesChanged
()
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRole: str#
This property holds The item model role to map to the row category..
In addition to defining which row the data belongs to, the value indicated by the row role is also set as the Z-coordinate value of QSurfaceDataItem
when model data is resolved, unless a separate z position role is also defined.
- Access functions:
rowRole
()setRowRole
(role)Signal
rowRoleChanged
(role)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRolePattern: PySide6.QtCore.QRegularExpression#
This property holds Whether a search and replace is performed on the value mapped by the row role before it is used as a row category..
This property specifies the regular expression to find the portion of the mapped value to replace and the rowRoleReplace
property contains the replacement string.
See also
- Access functions:
setRowRolePattern
(pattern)Signal
rowRolePatternChanged
(pattern)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRoleReplace: str#
This property holds The replace content to be used in conjunction with the row role pattern..
Defaults to an empty string. For more information on how the search and replace using regular expressions works, see replace
(const QRegularExpression
&rx, const QString
&after) function documentation.
See also
- Access functions:
setRowRoleReplace
(replace)Signal
rowRoleReplaceChanged
(replace)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.useModelCategories: bool#
This property holds Whether row and column roles and categories are used for mapping..
When set to true
, the mapping ignores row and column roles and categories, and uses the rows and columns from the model instead. Defaults to false
.
- Access functions:
setUseModelCategories
(enable)Signal
useModelCategoriesChanged
(enable)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRole: str#
This property holds The item model role to map to the X position..
If this role is not defined, columnRole
is used to determine the X-coordinate value of the resolved QSurfaceDataItem
objects.
- Access functions:
xPosRole
()setXPosRole
(role)Signal
xPosRoleChanged
(role)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRolePattern: PySide6.QtCore.QRegularExpression#
This property holds Whether a search and replace is done on the value mapped by the x position role before it is used as an item position value..
This property specifies the regular expression to find the portion of the mapped value to replace and the xPosRoleReplace
property contains the replacement string.
See also
- Access functions:
setXPosRolePattern
(pattern)Signal
xPosRolePatternChanged
(pattern)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRoleReplace: str#
This property holds The replace content to be used in conjunction with an x position role pattern..
Defaults to an empty string. For more information on how the search and replace using regular expressions works, see the replace
(const QRegularExpression
&rx, const QString
&after) function documentation.
See also
- Access functions:
setXPosRoleReplace
(replace)Signal
xPosRoleReplaceChanged
(replace)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRole: str#
This property holds The item model role to map to the Y position..
- Access functions:
yPosRole
()setYPosRole
(role)Signal
yPosRoleChanged
(role)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRolePattern: PySide6.QtCore.QRegularExpression#
This property holds Whether a search and replace is done on the value mapped by the y position role before it is used as an item position value..
This property specifies the regular expression to find the portion of the mapped value to replace and the yPosRoleReplace
property contains the replacement string.
See also
- Access functions:
setYPosRolePattern
(pattern)Signal
yPosRolePatternChanged
(pattern)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRoleReplace: str#
This property holds The replace content to be used in conjunction with an y position role pattern..
Defaults to an empty string. For more information on how the search and replace using regular expressions works, see the replace
(const QRegularExpression
&rx, const QString
&after) function documentation.
See also
- Access functions:
setYPosRoleReplace
(replace)Signal
yPosRoleReplaceChanged
(replace)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRole: str#
This property holds The item model role to map to the Z position..
If this role is not defined, rowRole
is used to determine the Z-coordinate value of resolved QSurfaceDataItem
objects.
- Access functions:
zPosRole
()setZPosRole
(role)Signal
zPosRoleChanged
(role)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRolePattern: PySide6.QtCore.QRegularExpression#
This property holds Whether a search and replace is done on the value mapped by the z position role before it is used as an item position value..
This property specifies the regular expression to find the portion of the mapped value to replace and the zPosRoleReplace
property contains the replacement string.
See also
- Access functions:
setZPosRolePattern
(pattern)Signal
zPosRolePatternChanged
(pattern)
- property PᅟySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRoleReplace: str#
This property holds The replace content to be used in conjunction with a z position role pattern..
Defaults to an empty string. For more information on how the search and replace using regular expressions works, see the replace
(const QRegularExpression
&rx, const QString
&after) function documentation.
See also
- Access functions:
setZPosRoleReplace
(replace)Signal
zPosRoleReplaceChanged
(replace)
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.MultiMatchBehavior#
Behavior types for multiMatchBehavior
property.
Constant
Description
QItemModelSurfaceDataProxy.MMBFirst
The position values are taken from the first item in the item model that matches each row/column combination.
QItemModelSurfaceDataProxy.MMBLast
The position values are taken from the last item in the item model that matches each row/column combination.
QItemModelSurfaceDataProxy.MMBAverage
The position values from all items matching each row/column combination are averaged together and the averages are used as the surface point position.
QItemModelSurfaceDataProxy.MMBCumulativeY
For X and Z values this acts just like
MMBAverage
, but Y values are added together instead of averaged and the total is used as the surface point Y position.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.autoColumnCategories()#
- Return type:
bool
See also
Getter of property autoColumnCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.autoColumnCategoriesChanged(enable)#
- Parameters:
enable – bool
Notification signal of property autoColumnCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.autoRowCategories()#
- Return type:
bool
See also
Getter of property autoRowCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.autoRowCategoriesChanged(enable)#
- Parameters:
enable – bool
Notification signal of property autoRowCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnCategories()#
- Return type:
list of strings
See also
Getter of property columnCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnCategoriesChanged()#
Notification signal of property columnCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnCategoryIndex(category)#
- Parameters:
category – str
- Return type:
int
Returns the index of the specified category
in the column categories list. If the category is not found, -1 is returned.
Note
If the automatic column categories generation is in use, this method will not return a valid index before the data in the model is resolved for the first time.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRole()#
- Return type:
str
See also
Getter of property columnRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRoleChanged(role)#
- Parameters:
role – str
Notification signal of property columnRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRolePattern()#
- Return type:
See also
Getter of property columnRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRolePatternChanged(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
Notification signal of property columnRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRoleReplace()#
- Return type:
str
See also
Getter of property columnRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.columnRoleReplaceChanged(replace)#
- Parameters:
replace – str
Notification signal of property columnRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.itemModel()#
- Return type:
See also
Getter of property itemModel
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.itemModelChanged(itemModel)#
- Parameters:
itemModel –
PySide6.QtCore.QAbstractItemModel
Notification signal of property itemModel
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.multiMatchBehavior()#
- Return type:
See also
Getter of property multiMatchBehavior
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.multiMatchBehaviorChanged(behavior)#
- Parameters:
behavior –
MultiMatchBehavior
Notification signal of property multiMatchBehavior
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.remap(rowRole, columnRole, xPosRole, yPosRole, zPosRole, rowCategories, columnCategories)#
- Parameters:
rowRole – str
columnRole – str
xPosRole – str
yPosRole – str
zPosRole – str
rowCategories – list of strings
columnCategories – list of strings
Changes rowRole
, columnRole
, xPosRole
, yPosRole
, zPosRole
, rowCategories
and columnCategories
to the mapping.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowCategories()#
- Return type:
list of strings
See also
Getter of property rowCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowCategoriesChanged()#
Notification signal of property rowCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowCategoryIndex(category)#
- Parameters:
category – str
- Return type:
int
Returns the index of the specified category
in the row categories list. If the row categories list is empty, -1 is returned.
Note
If the automatic row categories generation is in use, this method will not return a valid index before the data in the model is resolved for the first time.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRole()#
- Return type:
str
See also
Getter of property rowRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRoleChanged(role)#
- Parameters:
role – str
Notification signal of property rowRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRolePattern()#
- Return type:
See also
Getter of property rowRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRolePatternChanged(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
Notification signal of property rowRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRoleReplace()#
- Return type:
str
See also
Getter of property rowRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.rowRoleReplaceChanged(replace)#
- Parameters:
replace – str
Notification signal of property rowRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setAutoColumnCategories(enable)#
- Parameters:
enable – bool
See also
Setter of property autoColumnCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setAutoRowCategories(enable)#
- Parameters:
enable – bool
See also
Setter of property autoRowCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setColumnCategories(categories)#
- Parameters:
categories – list of strings
See also
Setter of property columnCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setColumnRole(role)#
- Parameters:
role – str
See also
Setter of property columnRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setColumnRolePattern(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
See also
Setter of property columnRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setColumnRoleReplace(replace)#
- Parameters:
replace – str
See also
Setter of property columnRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setItemModel(itemModel)#
- Parameters:
itemModel –
PySide6.QtCore.QAbstractItemModel
Sets the item model to itemModel
. Does not take ownership of the model, but does connect to it to listen for changes.
See also
Setter of property itemModel
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setMultiMatchBehavior(behavior)#
- Parameters:
behavior –
MultiMatchBehavior
See also
Setter of property multiMatchBehavior
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setRowCategories(categories)#
- Parameters:
categories – list of strings
See also
Setter of property rowCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setRowRole(role)#
- Parameters:
role – str
See also
Setter of property rowRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setRowRolePattern(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
See also
Setter of property rowRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setRowRoleReplace(replace)#
- Parameters:
replace – str
See also
Setter of property rowRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setUseModelCategories(enable)#
- Parameters:
enable – bool
See also
Setter of property useModelCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setXPosRole(role)#
- Parameters:
role – str
See also
Setter of property xPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setXPosRolePattern(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
See also
Setter of property xPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setXPosRoleReplace(replace)#
- Parameters:
replace – str
See also
Setter of property xPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setYPosRole(role)#
- Parameters:
role – str
See also
Setter of property yPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setYPosRolePattern(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
See also
Setter of property yPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setYPosRoleReplace(replace)#
- Parameters:
replace – str
See also
Setter of property yPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setZPosRole(role)#
- Parameters:
role – str
See also
Setter of property zPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setZPosRolePattern(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
See also
Setter of property zPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.setZPosRoleReplace(replace)#
- Parameters:
replace – str
See also
Setter of property zPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.useModelCategories()#
- Return type:
bool
See also
Getter of property useModelCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.useModelCategoriesChanged(enable)#
- Parameters:
enable – bool
Notification signal of property useModelCategories
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRole()#
- Return type:
str
See also
Getter of property xPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRoleChanged(role)#
- Parameters:
role – str
Notification signal of property xPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRolePattern()#
- Return type:
See also
Getter of property xPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRolePatternChanged(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
Notification signal of property xPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRoleReplace()#
- Return type:
str
See also
Getter of property xPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.xPosRoleReplaceChanged(replace)#
- Parameters:
replace – str
Notification signal of property xPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRole()#
- Return type:
str
See also
Getter of property yPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRoleChanged(role)#
- Parameters:
role – str
Notification signal of property yPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRolePattern()#
- Return type:
See also
Getter of property yPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRolePatternChanged(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
Notification signal of property yPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRoleReplace()#
- Return type:
str
See also
Getter of property yPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.yPosRoleReplaceChanged(replace)#
- Parameters:
replace – str
Notification signal of property yPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRole()#
- Return type:
str
See also
Getter of property zPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRoleChanged(role)#
- Parameters:
role – str
Notification signal of property zPosRole
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRolePattern()#
- Return type:
See also
Getter of property zPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRolePatternChanged(pattern)#
- Parameters:
pattern –
PySide6.QtCore.QRegularExpression
Notification signal of property zPosRolePattern
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRoleReplace()#
- Return type:
str
See also
Getter of property zPosRoleReplace
.
- PySide6.QtDataVisualization.QItemModelSurfaceDataProxy.zPosRoleReplaceChanged(replace)#
- Parameters:
replace – str
Notification signal of property zPosRoleReplace
.