Class: QgsDatabaseFilterProxyModel

class qgis.core.QgsDatabaseFilterProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

A class that implements a custom filter and can be used as a proxy for QgsDbTableModel

New in version 3.0.

QgsDatabaseFilterProxyModel(parent: QObject = None) Constructor for QgsDatabaseFilterProxyModel.

QgsDatabaseFilterProxyModel.beginInsertColumns(self, QModelIndex, int, int)
QgsDatabaseFilterProxyModel.beginInsertRows(self, QModelIndex, int, int)
QgsDatabaseFilterProxyModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsDatabaseFilterProxyModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsDatabaseFilterProxyModel.beginRemoveColumns(self, QModelIndex, int, int)
QgsDatabaseFilterProxyModel.beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
QgsDatabaseFilterProxyModel.changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
QgsDatabaseFilterProxyModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
customEvent(self, QEvent)
QgsDatabaseFilterProxyModel.decodeData(self, int, int, QModelIndex, QDataStream) -> bool
disconnectNotify(self, QMetaMethod)
encodeData(self, Iterable[QModelIndex], QDataStream)
endInsertColumns(self)
endInsertRows(self)
endMoveColumns(self)
endMoveRows(self)
endRemoveColumns(self)
endRemoveRows(self)
endResetModel(self)
filterAcceptsColumn(self, int, QModelIndex)bool
filterAcceptsRow(self, row: int, source_parent: QModelIndex)bool
Parameters
  • row (int) –

  • source_parent (QModelIndex) –

Return type

bool

invalidateFilter(self)
isSignalConnected(self, QMetaMethod)bool
QgsDatabaseFilterProxyModel.lessThan(self, QModelIndex, QModelIndex) -> bool
persistentIndexList(self)List[QModelIndex]
receivers(self, PYQT_SIGNAL)int
resetInternalData(self)
sender(self)QObject
senderSignalIndex(self)int
timerEvent(self, QTimerEvent)