QAccessibleTableModelChangeEvent¶
The
QAccessibleTableModelChangeEvent
signifies a change in a table, list, or tree where cells are added or removed. If the change affected a number of rows,firstColumn
andlastColumn
will return -1. Likewise for columns, the row functions may return -1. More…
Synopsis¶
Functions¶
def
firstColumn
()def
firstRow
()def
lastColumn
()def
lastRow
()def
modelChangeType
()def
setFirstColumn
(col)def
setFirstRow
(row)def
setLastColumn
(col)def
setLastRow
(row)def
setModelChangeType
(changeType)
Detailed Description¶
This class is used with
updateAccessibility()
.
- class PySide2.QtGui.QAccessibleTableModelChangeEvent(iface, changeType)¶
PySide2.QtGui.QAccessibleTableModelChangeEvent(obj, changeType)
- param iface:
- param changeType:
- param obj:
Constructs a new
QAccessibleTableModelChangeEvent
for interfaceiface
with a model change typechangeType
.Constructs a new
QAccessibleTableModelChangeEvent
forobject
of withchangeType
.
- PySide2.QtGui.QAccessibleTableModelChangeEvent.ModelChangeType¶
This enum describes the different types of changes in the table model.
Constant
Description
QAccessibleTableModelChangeEvent.ModelReset
The model has been reset, all previous knowledge about the model is now invalid.
QAccessibleTableModelChangeEvent.DataChanged
No cells have been added or removed, but the data of the specified cell range is invalid.
QAccessibleTableModelChangeEvent.RowsInserted
New rows have been inserted.
QAccessibleTableModelChangeEvent.ColumnsInserted
New columns have been inserted.
QAccessibleTableModelChangeEvent.RowsRemoved
Rows have been removed.
QAccessibleTableModelChangeEvent.ColumnsRemoved
Columns have been removed.
- PySide2.QtGui.QAccessibleTableModelChangeEvent.firstColumn()¶
- Return type:
int
Returns the first changed column.
See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.firstRow()¶
- Return type:
int
Returns the first changed row.
See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.lastColumn()¶
- Return type:
int
Returns the last changed column.
See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.lastRow()¶
- Return type:
int
Returns the last changed row.
See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.modelChangeType()¶
- Return type:
Returns the type of change.
See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.setFirstColumn(col)¶
- Parameters:
col – int
Sets the first changed
column
.See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.setFirstRow(row)¶
- Parameters:
row – int
Sets the first changed
row
.See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.setLastColumn(col)¶
- Parameters:
col – int
Sets the last changed
column
.See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.setLastRow(row)¶
- Parameters:
row – int
Sets the last changed
row
.See also
- PySide2.QtGui.QAccessibleTableModelChangeEvent.setModelChangeType(changeType)¶
- Parameters:
changeType –
ModelChangeType
Sets the type of change to
changeType
.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.