Class: QgsLayerMetadataResultsProxyModel

class qgis.gui.QgsLayerMetadataResultsProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

The QgsLayerMetadataResultsProxyModel class is a proxy model for QgsLayerMetadataResultsModel, it handles text and extent filtering.

New in version 3.28.

QgsLayerMetadataResultsProxyModel(parent: QObject = None) Constructs a QgsLayerMetadataResultsProxyModel with an optional parent.

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 sourceRow

filterString

Returns the filter string.

invalidateFilter

isSignalConnected

lessThan

persistentIndexList

receivers

resetInternalData

sender

senderSignalIndex

setFilterExtent

Sets the extent filter to extent.

setFilterGeometryType

Sets the geometry type filter to geometryType.

setFilterGeometryTypeEnabled

Sets the geometry type filter status to enabled.

setFilterMapLayerType

Sets the map layer type filter to mapLayerType.

setFilterMapLayerTypeEnabled

Sets the map layer type filter status to enabled.

setFilterString

Sets the text filter to filterString.

timerEvent

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

  • sourceParent (QModelIndex) –

Return type

bool

filterString(self) str

Returns the filter string.

Return type

str

invalidateFilter(self)
isSignalConnected(self, QMetaMethod) bool
QgsLayerMetadataResultsProxyModel.lessThan(self, QModelIndex, QModelIndex) -> bool
persistentIndexList(self) List[QModelIndex]
receivers(self, PYQT_SIGNAL) int
resetInternalData(self)
sender(self) QObject
senderSignalIndex(self) int
setFilterExtent(self, extent: QgsRectangle)

Sets the extent filter to extent.

Parameters

extent (QgsRectangle) –

setFilterGeometryType(self, geometryType: QgsWkbTypes.GeometryType)

Sets the geometry type filter to geometryType.

Parameters

geometryType (QgsWkbTypes.GeometryType) –

setFilterGeometryTypeEnabled(self, enabled: bool)

Sets the geometry type filter status to enabled.

Parameters

enabled (bool) –

setFilterMapLayerType(self, mapLayerType: QgsMapLayerType)

Sets the map layer type filter to mapLayerType.

Parameters

mapLayerType (QgsMapLayerType) –

setFilterMapLayerTypeEnabled(self, enabled: bool)

Sets the map layer type filter status to enabled.

Parameters

enabled (bool) –

setFilterString(self, filterString: str)

Sets the text filter to filterString.

Parameters

filterString (str) –

timerEvent(self, QTimerEvent)