Class: QgsCoordinateReferenceSystemProxyModel¶
- class qgis.gui.QgsCoordinateReferenceSystemProxyModel¶
Bases:
PyQt5.QtCore.QSortFilterProxyModel
A sort/filter proxy model for coordinate reference systems.
Added in version 3.34.
QgsCoordinateReferenceSystemProxyModel(parent: QObject = None) Constructor for
QgsCoordinateReferenceSystemProxyModel
, with the givenparent
object.Methods
Returns the underlying source model.
- param sourceRow:
Returns the current filter list of auth ID strings, if set.
Returns whether deprecated CRS will be filtered from the results.
Returns the current filter string, if set.
Returns any filters that affect how CRS are filtered.
- param left:
Sets a
filter
list of CRS auth ID strings, such that only coordinate reference systems matching the specified auth IDs will be shown.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.Attributes
- class Filter¶
Bases:
int
- FilterCompound = 8¶
- FilterHorizontal = 2¶
- FilterVertical = 4¶
- class Filters¶
- class Filters(Union[QgsCoordinateReferenceSystemProxyModel.Filters, QgsCoordinateReferenceSystemProxyModel.Filter])
- class Filters(QgsCoordinateReferenceSystemProxyModel.Filters)
Bases:
sip.wrapper
- baseClass¶
- 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)¶
- coordinateReferenceSystemModel(self) QgsCoordinateReferenceSystemModel ¶
Returns the underlying source model.
- Return type:
- createIndex(self, int, int, object: object = 0) QModelIndex ¶
- 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
- filterAuthIds(self) Set[str] ¶
Returns the current filter list of auth ID strings, if set.
See also
- Return type:
Set[str]
- filterDeprecated(self) bool ¶
Returns whether deprecated CRS will be filtered from the results.
See also
- Return type:
bool
- filterString(self) str ¶
Returns the current filter string, if set.
See also
- Return type:
str
- 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, left: QModelIndex, right: QModelIndex) bool ¶
- Parameters:
left (QModelIndex)
right (QModelIndex)
- Return type:
bool
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, PYQT_SIGNAL) int ¶
- resetInternalData(self)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setFilterAuthIds(self, filter: Iterable[str])¶
Sets a
filter
list of CRS auth ID strings, such that only coordinate reference systems matching the specified auth IDs will be shown.See also
- Parameters:
filter (Iterable[str])
- setFilterDeprecated(self, filter: bool)¶
Sets whether deprecated CRS should be filtered from the results.
See also
- Parameters:
filter (bool)
- setFilterString(self, filter: str)¶
Sets a
filter
string, such that only coordinate reference systems matching the specified string will be shown.See also
- Parameters:
filter (str)
- setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filters | QgsCoordinateReferenceSystemProxyModel.Filter)¶
Set
filters
that affect how CRS are filtered.See also
- Parameters:
filters (Union[QgsCoordinateReferenceSystemProxyModel.Filters)
- timerEvent(self, QTimerEvent)¶