Class: QgsRecentCoordinateReferenceSystemsProxyModel

class qgis.gui.QgsRecentCoordinateReferenceSystemsProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

A sort/filter proxy model for recent coordinate reference systems.

Added in version 3.36.

QgsRecentCoordinateReferenceSystemsProxyModel(parent: QObject = None) Constructor for QgsRecentCoordinateReferenceSystemsProxyModel, with the given parent object.

Methods

beginInsertColumns

beginInsertRows

beginMoveColumns

beginMoveRows

beginRemoveColumns

beginRemoveRows

beginResetModel

changePersistentIndex

changePersistentIndexList

childEvent

connectNotify

createIndex

crs

Returns the CRS for the corresponding index.

customEvent

decodeData

disconnectNotify

encodeData

endInsertColumns

endInsertRows

endMoveColumns

endMoveRows

endRemoveColumns

endRemoveRows

endResetModel

filterAcceptsColumn

filterAcceptsRow

param sourceRow:

filters

Returns any filters that affect how CRS are filtered.

invalidateFilter

isSignalConnected

lessThan

persistentIndexList

receivers

recentCoordinateReferenceSystemsModel

Returns the underlying source model.

resetInternalData

sender

senderSignalIndex

setFilterDeprecated

Sets whether deprecated CRS should be filtered from the results.

setFilterString

Sets a filter string, such that only coordinate reference systems matching the specified string will be shown.

setFilters

Set filters that affect how CRS are filtered.

timerEvent

beginInsertColumns(self, QModelIndex, int, int)
beginInsertRows(self, QModelIndex, int, int)
beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) bool
beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) bool
beginRemoveColumns(self, QModelIndex, int, int)
beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
createIndex(self, int, int, object: object = 0) QModelIndex
crs(self, index: QModelIndex) QgsCoordinateReferenceSystem

Returns the CRS for the corresponding index.

Returns an invalid CRS if the index is not valid.

Parameters:

index (QModelIndex)

Return type:

QgsCoordinateReferenceSystem

customEvent(self, QEvent)
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

filters(self) QgsCoordinateReferenceSystemProxyModel.Filters

Returns any filters that affect how CRS are filtered.

See also

setFilters()

Return type:

QgsCoordinateReferenceSystemProxyModel.Filters

invalidateFilter(self)
isSignalConnected(self, QMetaMethod) bool
lessThan(self, QModelIndex, QModelIndex) bool
persistentIndexList(self) List[QModelIndex]
receivers(self, PYQT_SIGNAL) int
recentCoordinateReferenceSystemsModel(self) QgsRecentCoordinateReferenceSystemsModel

Returns the underlying source model.

Return type:

QgsRecentCoordinateReferenceSystemsModel

resetInternalData(self)
sender(self) QObject
senderSignalIndex(self) int
setFilterDeprecated(self, filter: bool)

Sets whether deprecated CRS should be filtered from the results.

Parameters:

filter (bool)

setFilterString(self, filter: str)

Sets a filter string, such that only coordinate reference systems matching the specified string will be shown.

Parameters:

filter (str)

setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filters | QgsCoordinateReferenceSystemProxyModel.Filter)

Set filters that affect how CRS are filtered.

Parameters:

filters (Union[QgsCoordinateReferenceSystemProxyModel.Filters)

timerEvent(self, QTimerEvent)