Class: QgsSettingsTreeModel¶
- class qgis.gui.QgsSettingsTreeModel¶
Bases:
PyQt5.QtCore.QAbstractItemModel
QgsSettingsTreeModel
is a tree model for the settings tree.New in version 3.32.
QgsSettingsTreeModel(rootNode:
QgsSettingsTreeNode
= None, parent: QObject = None) ConstructorEnums
Bases:
enum.IntEnum
Methods
Apply pending changes in the model to the corresponding settings
beginInsertColumns
beginInsertRows
beginMoveColumns
beginMoveRows
beginRemoveColumns
beginRemoveRows
changePersistentIndex
- param parent:
createIndex
- param index:
decodeData
- param index:
- param section:
- param row:
- param child:
- param parent:
- param index:
- class Column(value)¶
Bases:
enum.IntEnum
Columns
Name
: NameValue
: ValueDescription
: Description
- Description = 2¶
- Name = 0¶
- Value = 1¶
- applyChanges(self)¶
Apply pending changes in the model to the corresponding settings
- QgsSettingsTreeModel.beginInsertColumns(self, QModelIndex, int, int)
- QgsSettingsTreeModel.beginInsertRows(self, QModelIndex, int, int)
- QgsSettingsTreeModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsSettingsTreeModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsSettingsTreeModel.beginRemoveColumns(self, QModelIndex, int, int)
- QgsSettingsTreeModel.beginRemoveRows(self, QModelIndex, int, int)
- beginResetModel(self)¶
- QgsSettingsTreeModel.changePersistentIndex(self, QModelIndex, QModelIndex)
- changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])¶
- childEvent(self, QChildEvent)¶
- columnCount(self, parent: QModelIndex) int ¶
- Parameters:
parent (QModelIndex) –
- Return type:
int
- connectNotify(self, QMetaMethod)¶
- QgsSettingsTreeModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
- customEvent(self, QEvent)¶
- data(self, index: QModelIndex, role: int) Any ¶
- Parameters:
index (QModelIndex) –
role (int) –
- Return type:
Any
- QgsSettingsTreeModel.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)¶
- flags(self, index: QModelIndex) Qt.ItemFlags ¶
- Parameters:
index (QModelIndex) –
- Return type:
Qt.ItemFlags
- headerData(self, section: int, orientation: Qt.Orientation, role: int) Any ¶
- Parameters:
section (int) –
orientation (Qt.Orientation) –
role (int) –
- Return type:
Any
- index(self, row: int, column: int, parent: QModelIndex) QModelIndex ¶
- Parameters:
row (int) –
column (int) –
parent (QModelIndex) –
- Return type:
QModelIndex
- isSignalConnected(self, QMetaMethod) bool ¶
- parent(self, child: QModelIndex) QModelIndex ¶
- Parameters:
child (QModelIndex) –
- Return type:
QModelIndex
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, PYQT_SIGNAL) int ¶
- resetInternalData(self)¶
- rowCount(self, parent: QModelIndex) int ¶
- Parameters:
parent (QModelIndex) –
- Return type:
int
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setData(self, index: QModelIndex, value: Any, role: int) bool ¶
- Parameters:
index (QModelIndex) –
value (Any) –
role (int) –
- Return type:
bool
- timerEvent(self, QTimerEvent)¶