Class: QgsProviderSublayerProxyModel

class qgis.core.QgsProviderSublayerProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel.

New in version 3.22.

QgsProviderSublayerProxyModel(parent: QObject = None) Constructor for QgsProviderSublayerProxyModel, with the specified parent object.

Methods

beginInsertColumns

beginInsertRows

beginMoveColumns

beginMoveRows

beginRemoveColumns

beginRemoveRows

beginResetModel

changePersistentIndex

changePersistentIndexList

childEvent

connectNotify

createIndex

customEvent

decodeData

disconnectNotify

encodeData

endInsertColumns

endInsertRows

endMoveColumns

endMoveRows

endRemoveColumns

endRemoveRows

endResetModel

filterAcceptsColumn

filterAcceptsRow

param source_row

filterString

Returns the filter string used for filtering items in the model.

invalidateFilter

isSignalConnected

lessThan

param source_left

persistentIndexList

receivers

resetInternalData

sender

senderSignalIndex

setFilterString

Sets the filter string used for filtering items in the model.

timerEvent

QgsProviderSublayerProxyModel.beginInsertColumns(self, QModelIndex, int, int)
QgsProviderSublayerProxyModel.beginInsertRows(self, QModelIndex, int, int)
QgsProviderSublayerProxyModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsProviderSublayerProxyModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsProviderSublayerProxyModel.beginRemoveColumns(self, QModelIndex, int, int)
QgsProviderSublayerProxyModel.beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
QgsProviderSublayerProxyModel.changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
QgsProviderSublayerProxyModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
customEvent(self, QEvent)
QgsProviderSublayerProxyModel.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, source_row: int, source_parent: QModelIndex)bool
Parameters
  • source_row (int) –

  • source_parent (QModelIndex) –

Return type

bool

filterString(self)str

Returns the filter string used for filtering items in the model.

Return type

str

invalidateFilter(self)
isSignalConnected(self, QMetaMethod)bool
lessThan(self, source_left: QModelIndex, source_right: QModelIndex)bool
Parameters
  • source_left (QModelIndex) –

  • source_right (QModelIndex) –

Return type

bool

persistentIndexList(self)List[QModelIndex]
receivers(self, PYQT_SIGNAL)int
resetInternalData(self)
sender(self)QObject
senderSignalIndex(self)int
setFilterString(self, filter: str)

Sets the filter string used for filtering items in the model.

See also

filterString()

Parameters

filter (str) –

timerEvent(self, QTimerEvent)