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 PySide2.QtGui.QAccessibleTableModelChangeEvent

Synopsis

Functions

Detailed Description

This class is used with updateAccessibility() .

class PySide2.QtGui.QAccessibleTableModelChangeEvent(iface, changeType)

PySide2.QtGui.QAccessibleTableModelChangeEvent(obj, changeType)

param iface:

PySide2.QtGui.QAccessibleInterface

param changeType:

ModelChangeType

param obj:

PySide2.QtCore.QObject

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

Constructs a new QAccessibleTableModelChangeEvent for object of with changeType .

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

setFirstColumn()

PySide2.QtGui.QAccessibleTableModelChangeEvent.firstRow()
Return type:

int

Returns the first changed row.

See also

setFirstRow()

PySide2.QtGui.QAccessibleTableModelChangeEvent.lastColumn()
Return type:

int

Returns the last changed column.

See also

setLastColumn()

PySide2.QtGui.QAccessibleTableModelChangeEvent.lastRow()
Return type:

int

Returns the last changed row.

See also

setLastRow()

PySide2.QtGui.QAccessibleTableModelChangeEvent.modelChangeType()
Return type:

ModelChangeType

Returns the type of change.

PySide2.QtGui.QAccessibleTableModelChangeEvent.setFirstColumn(col)
Parameters:

col – int

Sets the first changed column .

See also

firstColumn()

PySide2.QtGui.QAccessibleTableModelChangeEvent.setFirstRow(row)
Parameters:

row – int

Sets the first changed row .

See also

firstRow()

PySide2.QtGui.QAccessibleTableModelChangeEvent.setLastColumn(col)
Parameters:

col – int

Sets the last changed column .

See also

lastColumn()

PySide2.QtGui.QAccessibleTableModelChangeEvent.setLastRow(row)
Parameters:

row – int

Sets the last changed row .

See also

lastRow()

PySide2.QtGui.QAccessibleTableModelChangeEvent.setModelChangeType(changeType)
Parameters:

changeTypeModelChangeType

Sets the type of change to changeType .