PySide6.QtGui.QAccessibleTableModelChangeEvent¶
- class 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¶
Methods¶
def
__init__()
def
firstColumn()
def
firstRow()
def
lastColumn()
def
lastRow()
def
setFirstColumn()
def
setFirstRow()
def
setLastColumn()
def
setLastRow()
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¶
This class is used with
updateAccessibility()
.- class 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.
- __init__(iface, changeType)¶
- Parameters:
iface –
QAccessibleInterface
changeType –
ModelChangeType
Constructs a new
QAccessibleTableModelChangeEvent
for interfaceiface
with a model change typechangeType
.- __init__(obj, changeType)
- Parameters:
obj –
QObject
changeType –
ModelChangeType
Constructs a new
QAccessibleTableModelChangeEvent
forobject
of withchangeType
.- firstColumn()¶
- Return type:
int
Returns the first changed column.
See also
- firstRow()¶
- Return type:
int
Returns the first changed row.
See also
- lastColumn()¶
- Return type:
int
Returns the last changed column.
See also
- lastRow()¶
- Return type:
int
Returns the last changed row.
See also
- modelChangeType()¶
- Return type:
Returns the type of change.
See also
- setFirstColumn(col)¶
- Parameters:
col – int
Sets the first changed
column
.See also
- setFirstRow(row)¶
- Parameters:
row – int
Sets the first changed
row
.See also
- setLastColumn(col)¶
- Parameters:
col – int
Sets the last changed
column
.See also
- setLastRow(row)¶
- Parameters:
row – int
Sets the last changed
row
.See also
- setModelChangeType(changeType)¶
- Parameters:
changeType –
ModelChangeType
Sets the type of change to
changeType
.See also