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 givenparent
object.Methods
Returns the CRS for the corresponding
index
.- param sourceRow:
Returns any filters that affect how CRS are filtered.
Returns the underlying source model.
Sets whether deprecated CRS should be filtered from the results.
Sets a
filter
string, such that only coordinate reference systems matching the specified string will be shown.Set
filters
that affect how CRS are filtered.- 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:
- 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
- Return type:
- 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:
- 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)¶