Class: QgsProviderSublayerProxyModel¶
- class qgis.core.QgsProviderSublayerProxyModel¶
Bases:
PyQt5.QtCore.QSortFilterProxyModel
A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel.
New in version 3.22.
QgsProviderSublayerProxyModel(parent: QObject = None) Constructor for
QgsProviderSublayerProxyModel
, with the specifiedparent
object.Methods
beginInsertColumns
beginInsertRows
beginMoveColumns
beginMoveRows
beginRemoveColumns
beginRemoveRows
changePersistentIndex
createIndex
decodeData
- param source_row:
Returns the filter string used for filtering items in the model.
Returns
True
if empty tables will be shown in the model.Returns
True
if system and internal tables will be shown in the model.- param source_left:
Sets the
filter
string used for filtering items in the model.Sets whether empty tables will be shown in the model.
Sets whether system and internal tables will be shown in the model.
- QgsProviderSublayerProxyModel.beginInsertColumns(self, QModelIndex, int, int)
- QgsProviderSublayerProxyModel.beginInsertRows(self, QModelIndex, int, int)
- QgsProviderSublayerProxyModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsProviderSublayerProxyModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsProviderSublayerProxyModel.beginRemoveColumns(self, QModelIndex, int, int)
- QgsProviderSublayerProxyModel.beginRemoveRows(self, QModelIndex, int, int)
- beginResetModel(self)¶
- QgsProviderSublayerProxyModel.changePersistentIndex(self, QModelIndex, QModelIndex)
- changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])¶
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- QgsProviderSublayerProxyModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
- customEvent(self, QEvent)¶
- QgsProviderSublayerProxyModel.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
- filterString(self) str ¶
Returns the filter string used for filtering items in the model.
See also
- Return type:
str
- includeEmptyLayers(self) bool ¶
Returns
True
if empty tables will be shown in the model.See also
New in version 3.28.
- Return type:
bool
- includeSystemTables(self) bool ¶
Returns
True
if system and internal tables will be shown in the model.See also
- Return type:
bool
- invalidateFilter(self)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- lessThan(self, source_left: QModelIndex, source_right: QModelIndex) bool ¶
- Parameters:
source_left (QModelIndex) –
source_right (QModelIndex) –
- Return type:
bool
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, PYQT_SIGNAL) int ¶
- resetInternalData(self)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setFilterString(self, filter: str)¶
Sets the
filter
string used for filtering items in the model.See also
- Parameters:
filter (str) –
- setIncludeEmptyLayers(self, include: bool)¶
Sets whether empty tables will be shown in the model.
See also
New in version 3.28.
- Parameters:
include (bool) –
- setIncludeSystemTables(self, include: bool)¶
Sets whether system and internal tables will be shown in the model.
See also
- Parameters:
include (bool) –
- timerEvent(self, QTimerEvent)¶