Class: QgsSettingsTreeProxyModel¶
- class qgis.gui.QgsSettingsTreeProxyModel¶
Bases:
PyQt5.QtCore.QSortFilterProxyModel
QgsSettingsTreeProxyModel
allows filtering the settings treeNew in version 3.32.
QgsSettingsTreeProxyModel(rootNode:
QgsSettingsTreeNode
= None, parent: QObject = None) ConstructorMethods
Apply pending changes in the model to the corresponding settings
beginInsertColumns
beginInsertRows
beginMoveColumns
beginMoveRows
beginRemoveColumns
beginRemoveRows
changePersistentIndex
createIndex
decodeData
- param source_row:
lessThan
Sets the filter text
- applyChanges(self)¶
Apply pending changes in the model to the corresponding settings
- QgsSettingsTreeProxyModel.beginInsertColumns(self, QModelIndex, int, int)
- QgsSettingsTreeProxyModel.beginInsertRows(self, QModelIndex, int, int)
- QgsSettingsTreeProxyModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsSettingsTreeProxyModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsSettingsTreeProxyModel.beginRemoveColumns(self, QModelIndex, int, int)
- QgsSettingsTreeProxyModel.beginRemoveRows(self, QModelIndex, int, int)
- beginResetModel(self)¶
- QgsSettingsTreeProxyModel.changePersistentIndex(self, QModelIndex, QModelIndex)
- changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])¶
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- QgsSettingsTreeProxyModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
- customEvent(self, QEvent)¶
- QgsSettingsTreeProxyModel.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
- invalidateFilter(self)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- QgsSettingsTreeProxyModel.lessThan(self, QModelIndex, QModelIndex) -> bool
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, PYQT_SIGNAL) int ¶
- resetInternalData(self)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setFilterText(self, filterText: str = '')¶
Sets the filter text
- Parameters:
filterText (str = '') –
- timerEvent(self, QTimerEvent)¶