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

Inheritance diagram of PySide6.QtGui.QAccessibleTableModelChangeEvent

Synopsis

Methods

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:

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

__init__(obj, changeType)
Parameters:

Constructs a new QAccessibleTableModelChangeEvent for object of with changeType.

firstColumn()
Return type:

int

Returns the first changed column.

See also

setFirstColumn()

firstRow()
Return type:

int

Returns the first changed row.

See also

setFirstRow()

lastColumn()
Return type:

int

Returns the last changed column.

See also

setLastColumn()

lastRow()
Return type:

int

Returns the last changed row.

See also

setLastRow()

modelChangeType()
Return type:

ModelChangeType

Returns the type of change.

setFirstColumn(col)
Parameters:

col – int

Sets the first changed column.

See also

firstColumn()

setFirstRow(row)
Parameters:

row – int

Sets the first changed row.

See also

firstRow()

setLastColumn(col)
Parameters:

col – int

Sets the last changed column.

See also

lastColumn()

setLastRow(row)
Parameters:

row – int

Sets the last changed row.

See also

lastRow()

setModelChangeType(changeType)
Parameters:

changeTypeModelChangeType

Sets the type of change to changeType.