Skip to content

PythonQt.QtCore.QAbstractProxyModel · declarations 002

Back to PythonQt.QtCore.QAbstractProxyModel

setData

setData(index: Any, value: Any, role: int) -> bool

X.setData(index, value, role) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QAbstractProxyModel::setData(const QModelIndex \&index, const QVariant \&value, int role \= Qt::EditRole)

Reimplements: QAbstractItemModel::setData(const QModelIndex \&index, const QVariant \&value, int role).

See also data().

Upstream PySide2 reference signatures (binding differences may apply):

setData(self, index: PySide2.QtCore.QModelIndex, value: typing.Any, role: int=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#setData

setHeaderData

setHeaderData(section: int, orientation: Any, value: Any, role: int) -> bool

X.setHeaderData(section, orientation, value, role) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QAbstractProxyModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant \&value, int role \= Qt::EditRole)

Reimplements: QAbstractItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant \&value, int role).

See also headerData().

Upstream PySide2 reference signatures (binding differences may apply):

setHeaderData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, value: typing.Any, role: int=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#setHeaderData

setItemData

setItemData(index: Any, roles: Any) -> bool

X.setItemData(index, roles) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QAbstractProxyModel::setItemData(const QModelIndex \&index, const QMap\<int, QVariant> \&roles)

Reimplements: QAbstractItemModel::setItemData(const QModelIndex \&index, const QMap\<int, QVariant> \&roles).

See also itemData().

Upstream PySide2 reference signatures (binding differences may apply):

setItemData(self, index: PySide2.QtCore.QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#setItemData

setSourceModel

setSourceModel(sourceModel: Any) -> None

X.setSourceModel(sourceModel)

Supplemental documentation: Qt 5 reference:

[virtual] void QAbstractProxyModel::setSourceModel(QAbstractItemModel *sourceModel)

Sets the given sourceModel to be processed by the proxy model.

Subclasses should call beginResetModel() at the beginning of the method, disconnect from the old model, call this method, connect to the new model, and call endResetModel().

Note: Setter function for property sourceModel.

See also sourceModel().

Upstream PySide2 reference signatures (binding differences may apply):

setSourceModel(self, sourceModel: PySide2.QtCore.QAbstractItemModel) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#setSourceModel

sibling

sibling(row: int, column: int, idx: Any) -> Any

X.sibling(row, column, idx) -> PythonQt.QtCore.QModelIndex

Supplemental documentation: Qt 5 reference:

[override virtual] QModelIndex QAbstractProxyModel::sibling(int row, int column, const QModelIndex \&idx) const

Reimplements: QAbstractItemModel::sibling(int row, int column, const QModelIndex \&index) const.

Upstream PySide2 reference signatures (binding differences may apply):

sibling(self, row: int, column: int, idx: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#sibling

sort

sort(column: int, order: Any) -> None

X.sort(column, order)

Supplemental documentation: Qt 5 reference:

[override virtual] void QAbstractProxyModel::sort(int column, Qt::SortOrder order \= Qt::AscendingOrder)

Reimplements: QAbstractItemModel::sort(int column, Qt::SortOrder order).

Upstream PySide2 reference signatures (binding differences may apply):

sort(self, column: int, order: PySide2.QtCore.Qt.SortOrder=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#sort

sourceModel instance-attribute

sourceModel: QAbstractItemModel

Qt 5 reference:

sourceModel : QAbstractItemModel*

This property holds the source model of this proxy model.

Access functions:

QAbstractItemModel * sourceModel() const
virtual void setSourceModel(QAbstractItemModel *sourceModel)

Notifier signal:

void sourceModelChanged() [see note below]

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

QAbstractItemModel *QAbstractProxyModel::sourceModel() const

Returns the model that contains the data that is available through the proxy model.

Note: Getter function for property sourceModel.

See also setSourceModel().

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#sourceModel

sourceModelChanged

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

Native PythonQt.QtCore.QAbstractProxyModel.sourceModelChanged; argument details are not documented.

span

span(index: Any) -> Any

X.span(index) -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

[override virtual] QSize QAbstractProxyModel::span(const QModelIndex \&index) const

Reimplements: QAbstractItemModel::span(const QModelIndex \&index) const.

Upstream PySide2 reference signatures (binding differences may apply):

span(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#span

submit

submit() -> bool

X.submit() -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QAbstractProxyModel::submit()

Reimplements: QAbstractItemModel::submit().

Upstream PySide2 reference signatures (binding differences may apply):

submit(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#submit

supportedDragActions

supportedDragActions() -> Any

X.supportedDragActions()

Supplemental documentation: Qt 5 reference:

[override virtual] Qt::DropActions QAbstractProxyModel::supportedDragActions() const

Reimplements: QAbstractItemModel::supportedDragActions() const.

Upstream PySide2 reference signatures (binding differences may apply):

supportedDragActions(self) -> PySide2.QtCore.Qt.DropActions

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#supportedDragActions

supportedDropActions

supportedDropActions() -> Any

X.supportedDropActions()

Supplemental documentation: Qt 5 reference:

[override virtual] Qt::DropActions QAbstractProxyModel::supportedDropActions() const

Reimplements: QAbstractItemModel::supportedDropActions() const.

Upstream PySide2 reference signatures (binding differences may apply):

supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions

Source: https://doc.qt.io/archives/qt-5.15/qabstractproxymodel.html#supportedDropActions