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 and lastColumn will return -1. Likewise for columns, the row functions may return -1. More

Inheritance diagram of PySide6.QtGui.QAccessibleTableModelChangeEvent

Synopsis#

Functions#

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 PySide6.QtGui.QAccessibleTableModelChangeEvent(iface, changeType)#

PySide6.QtGui.QAccessibleTableModelChangeEvent(obj, changeType)

Parameters:

Constructs a new QAccessibleTableModelChangeEvent for interface iface with a model change type changeType.

Constructs a new QAccessibleTableModelChangeEvent for object of with changeType.

PySide6.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.

PySide6.QtGui.QAccessibleTableModelChangeEvent.firstColumn()#
Return type:

int

Returns the first changed column.

See also

setFirstColumn()

PySide6.QtGui.QAccessibleTableModelChangeEvent.firstRow()#
Return type:

int

Returns the first changed row.

See also

setFirstRow()

PySide6.QtGui.QAccessibleTableModelChangeEvent.lastColumn()#
Return type:

int

Returns the last changed column.

See also

setLastColumn()

PySide6.QtGui.QAccessibleTableModelChangeEvent.lastRow()#
Return type:

int

Returns the last changed row.

See also

setLastRow()

PySide6.QtGui.QAccessibleTableModelChangeEvent.modelChangeType()#
Return type:

ModelChangeType

Returns the type of change.

PySide6.QtGui.QAccessibleTableModelChangeEvent.setFirstColumn(col)#
Parameters:

col – int

Sets the first changed column.

See also

firstColumn()

PySide6.QtGui.QAccessibleTableModelChangeEvent.setFirstRow(row)#
Parameters:

row – int

Sets the first changed row.

See also

firstRow()

PySide6.QtGui.QAccessibleTableModelChangeEvent.setLastColumn(col)#
Parameters:

col – int

Sets the last changed column.

See also

lastColumn()

PySide6.QtGui.QAccessibleTableModelChangeEvent.setLastRow(row)#
Parameters:

row – int

Sets the last changed row.

See also

lastRow()

PySide6.QtGui.QAccessibleTableModelChangeEvent.setModelChangeType(changeType)#
Parameters:

changeTypeModelChangeType

Sets the type of change to changeType.