Skip to content

PythonQt.Qt.QAbstractItemModel · declarations 001

Back to PythonQt.Qt.QAbstractItemModel

columnsAboutToBeInserted

columnsAboutToBeInserted(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.columnsAboutToBeInserted; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::columnsAboutToBeInserted(const QModelIndex \&parent, int first, int last)

This signal is emitted just before columns are inserted into the model. The new items will be positioned between first and last inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also insertColumns() and beginInsertColumns().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#columnsAboutToBeInserted

columnsAboutToBeMoved

columnsAboutToBeMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.columnsAboutToBeMoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::columnsAboutToBeMoved(const QModelIndex \&sourceParent, int sourceStart, int sourceEnd, const QModelIndex \&destinationParent, int destinationColumn)

This signal is emitted just before columns are moved within the model. The items that will be moved are those between sourceStart and sourceEnd inclusive, under the given sourceParent item. They will be moved to destinationParent starting at the column destinationColumn.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

This function was introduced in Qt 4.6.

See also beginMoveRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#columnsAboutToBeMoved

columnsAboutToBeRemoved

columnsAboutToBeRemoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.columnsAboutToBeRemoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::columnsAboutToBeRemoved(const QModelIndex \&parent, int first, int last)

This signal is emitted just before columns are removed from the model. The items to be removed are those between first and last inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also removeColumns() and beginRemoveColumns().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#columnsAboutToBeRemoved

columnsInserted

columnsInserted(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.columnsInserted; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::columnsInserted(const QModelIndex \&parent, int first, int last)

This signal is emitted after columns have been inserted into the model. The new items are those between first and last inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also insertColumns() and beginInsertColumns().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#columnsInserted

columnsMoved

columnsMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.columnsMoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::columnsMoved(const QModelIndex \&parent, int start, int end, const QModelIndex \&destination, int column)

This signal is emitted after columns have been moved within the model. The items between start and end inclusive, under the given parent item have been moved to destination starting at the column column.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

This function was introduced in Qt 4.6.

See also beginMoveRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#columnsMoved

columnsRemoved

columnsRemoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.columnsRemoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::columnsRemoved(const QModelIndex \&parent, int first, int last)

This signal is emitted after columns have been removed from the model. The removed items are those between first and last inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also removeColumns() and beginRemoveColumns().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#columnsRemoved

dataChanged

dataChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.dataChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::dataChanged(const QModelIndex \&topLeft, const QModelIndex \&bottomRight, const QVector\<int> \&roles \= QVector\<int>())

This signal is emitted whenever the data in an existing item changes.

If the items are of the same parent, the affected ones are those between topLeft and bottomRight inclusive. If the items do not have the same parent, the behavior is undefined.

When reimplementing the setData() function, this signal must be emitted explicitly.

The optional roles argument can be used to specify which data roles have actually been modified. An empty vector in the roles argument means that all roles should be considered modified. The order of elements in the roles argument does not have any relevance.

See also headerDataChanged(), setData(), and layoutChanged().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#dataChanged

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.destroyed; argument details are not documented.

headerDataChanged

headerDataChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.headerDataChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::headerDataChanged(Qt::Orientation orientation, int first, int last)

This signal is emitted whenever a header is changed. The orientation indicates whether the horizontal or vertical header has changed. The sections in the header from the first to the last need to be updated.

When reimplementing the setHeaderData() function, this signal must be emitted explicitly.

If you are changing the number of columns or rows you do not need to emit this signal, but use the begin/end functions (refer to the section on subclassing in the QAbstractItemModel class description for details).

See also headerData(), setHeaderData(), and dataChanged().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#headerDataChanged

layoutAboutToBeChanged

layoutAboutToBeChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.layoutAboutToBeChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::layoutAboutToBeChanged(const QList\<QPersistentModelIndex> \&parents \= QList\<QPersistentModelIndex>(), QAbstractItemModel::LayoutChangeHint hint \= QAbstractItemModel::NoLayoutChangeHint)

This signal is emitted just before the layout of a model is changed. Components connected to this signal use it to adapt to changes in the model's layout.

Subclasses should update any persistent model indexes after emitting layoutAboutToBeChanged().

The optional parents parameter is used to give a more specific notification about what parts of the layout of the model are changing. An empty list indicates a change to the layout of the entire model. The order of elements in the parents list is not significant. The optional hint parameter is used to give a hint about what is happening while the model is relayouting.

This function was introduced in Qt 5.0.

See also layoutChanged() and changePersistentIndex().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#layoutAboutToBeChanged

layoutChanged

layoutChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.layoutChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::layoutChanged(const QList\<QPersistentModelIndex> \&parents \= QList\<QPersistentModelIndex>(), QAbstractItemModel::LayoutChangeHint hint \= QAbstractItemModel::NoLayoutChangeHint)

This signal is emitted whenever the layout of items exposed by the model has changed; for example, when the model has been sorted. When this signal is received by a view, it should update the layout of items to reflect this change.

When subclassing QAbstractItemModel or QAbstractProxyModel, ensure that you emit layoutAboutToBeChanged() before changing the order of items or altering the structure of the data you expose to views, and emit layoutChanged() after changing the layout.

The optional parents parameter is used to give a more specific notification about what parts of the layout of the model are changing. An empty list indicates a change to the layout of the entire model. The order of elements in the parents list is not significant. The optional hint parameter is used to give a hint about what is happening while the model is relayouting.

Subclasses should update any persistent model indexes before emitting layoutChanged(). In other words, when the structure changes:

This function was introduced in Qt 5.0.

See also layoutAboutToBeChanged(), dataChanged(), headerDataChanged(), modelReset(), and changePersistentIndex().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#layoutChanged

modelAboutToBeReset

modelAboutToBeReset(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.modelAboutToBeReset; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::modelAboutToBeReset()

This signal is emitted when beginResetModel() is called, before the model's internal state (e.g. persistent model indexes) has been invalidated.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

This function was introduced in Qt 4.2.

See also beginResetModel() and modelReset().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#modelAboutToBeReset

modelReset

modelReset(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.modelReset; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::modelReset()

This signal is emitted when endResetModel() is called, after the model's internal state (e.g. persistent model indexes) has been invalidated.

Note that if a model is reset it should be considered that all information previously retrieved from it is invalid. This includes but is not limited to the rowCount() and columnCount(), flags(), data retrieved through data(), and roleNames().

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

This function was introduced in Qt 4.1.

See also endResetModel() and modelAboutToBeReset().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#modelReset

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.objectNameChanged; argument details are not documented.

rowsAboutToBeInserted

rowsAboutToBeInserted(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.rowsAboutToBeInserted; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::rowsAboutToBeInserted(const QModelIndex \&parent, int start, int end)

This signal is emitted just before rows are inserted into the model. The new items will be positioned between start and end inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also insertRows() and beginInsertRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#rowsAboutToBeInserted

rowsAboutToBeMoved

rowsAboutToBeMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.rowsAboutToBeMoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::rowsAboutToBeMoved(const QModelIndex \&sourceParent, int sourceStart, int sourceEnd, const QModelIndex \&destinationParent, int destinationRow)

This signal is emitted just before rows are moved within the model. The items that will be moved are those between sourceStart and sourceEnd inclusive, under the given sourceParent item. They will be moved to destinationParent starting at the row destinationRow.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

This function was introduced in Qt 4.6.

See also beginMoveRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#rowsAboutToBeMoved

rowsAboutToBeRemoved

rowsAboutToBeRemoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.rowsAboutToBeRemoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::rowsAboutToBeRemoved(const QModelIndex \&parent, int first, int last)

This signal is emitted just before rows are removed from the model. The items that will be removed are those between first and last inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also removeRows() and beginRemoveRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#rowsAboutToBeRemoved

rowsInserted

rowsInserted(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.rowsInserted; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::rowsInserted(const QModelIndex \&parent, int first, int last)

This signal is emitted after rows have been inserted into the model. The new items are those between first and last inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also insertRows() and beginInsertRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#rowsInserted

rowsMoved

rowsMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.rowsMoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::rowsMoved(const QModelIndex \&parent, int start, int end, const QModelIndex \&destination, int row)

This signal is emitted after rows have been moved within the model. The items between start and end inclusive, under the given parent item have been moved to destination starting at the row row.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

This function was introduced in Qt 4.6.

See also beginMoveRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#rowsMoved

rowsRemoved

rowsRemoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QAbstractItemModel.rowsRemoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractItemModel::rowsRemoved(const QModelIndex \&parent, int first, int last)

This signal is emitted after rows have been removed from the model. The removed items are those between first and last inclusive, under the given parent item.

Note: Components connected to this signal use it to adapt to changes in the model's dimensions. It can only be emitted by the QAbstractItemModel implementation, and cannot be explicitly emitted in subclass code.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also removeRows() and beginRemoveRows().

Source: https://doc.qt.io/archives/qt-5.15/qabstractitemmodel.html#rowsRemoved